commit | 0003938f2bba56ab1fad31d3b16ad87178194f19 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Mon Jul 12 13:24:43 2021 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Mon Jul 12 13:29:20 2021 +0530 |
tree | 50fc949bb3ca9e2f5de89aa71f3631e27f0d59e6 | |
parent | 01aada6c904e37ce5ef89980ae97b68fd4fbe257 [diff] |
refactor: Optimized code for reposting item valuation
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 0febcb6..cb939e6 100644 --- a/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py +++ b/erpnext/stock/doctype/stock_ledger_entry/stock_ledger_entry.py
@@ -178,3 +178,4 @@ 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", ["voucher_detail_no"])