Added index on SLE based on batch_no, item and warehouse

This commit is contained in:
Nabin Hait 2018-07-23 14:38:40 +05:30
parent 20a80fee45
commit 0c0c345678

View File

@ -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"])