diff --git a/erpnext/patches.txt b/erpnext/patches.txt index b1b20514f5a..91dad17616d 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -418,7 +418,7 @@ erpnext.patches.v15_0.set_cancelled_status_to_cancelled_pos_invoice erpnext.patches.v15_0.rename_group_by_to_categorize_by_in_custom_reports erpnext.patches.v15_0.remove_agriculture_roles erpnext.patches.v14_0.update_full_name_in_contract -erpnext.patches.v15_0.drop_sle_indexes +erpnext.patches.v15_0.drop_sle_indexes #2025-09-18 erpnext.patches.v15_0.update_pick_list_fields execute:frappe.db.set_single_value("Accounts Settings", "confirm_before_resetting_posting_date", 1) erpnext.patches.v15_0.rename_pos_closing_entry_fields #2025-06-13 diff --git a/erpnext/patches/v15_0/drop_sle_indexes.py b/erpnext/patches/v15_0/drop_sle_indexes.py index 8e18245b1a5..0b8147defee 100644 --- a/erpnext/patches/v15_0/drop_sle_indexes.py +++ b/erpnext/patches/v15_0/drop_sle_indexes.py @@ -4,7 +4,7 @@ import frappe def execute(): table = "tabStock Ledger Entry" - index_list = ["posting_datetime_creation_index", "item_warehouse"] + index_list = ["posting_datetime_creation_index", "item_warehouse", "batch_no_item_code_warehouse_index"] for index in index_list: if not frappe.db.has_index(table, index): diff --git a/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py b/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py index b4e945b5782..993dad8ca05 100644 --- a/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py +++ b/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py @@ -347,5 +347,4 @@ class StockLedgerEntry(Document): def on_doctype_update(): frappe.db.add_index("Stock Ledger Entry", ["voucher_no", "voucher_type"]) - frappe.db.add_index("Stock Ledger Entry", ["batch_no", "item_code", "warehouse"]) frappe.db.add_index("Stock Ledger Entry", ["item_code", "warehouse", "posting_datetime", "creation"])