From 0c0c34567874dc126367a8a9196302f1c8767544 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 23 Jul 2018 14:38:40 +0530 Subject: [PATCH] Added index on SLE based on batch_no, item and warehouse --- erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py | 2 ++ 1 file changed, 2 insertions(+) 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 085e87f5f4..3c60896d0a 100644 --- a/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py +++ b/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py @@ -131,3 +131,5 @@ def on_doctype_update(): add index posting_sort_index(posting_date, posting_time, name)""") frappe.db.add_index("Stock Ledger Entry", ["voucher_no", "voucher_type"]) + frappe.db.add_index("Stock Ledger Entry", ["batch_no", "item_code", "warehouse"]) +