mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 21:59:13 +00:00
perf: don't try to match SLE if count mismatch
This commit is contained in:
@@ -960,6 +960,9 @@ def get_voucherwise_gl_entries(future_stock_vouchers, posting_date):
|
|||||||
return gl_entries
|
return gl_entries
|
||||||
|
|
||||||
def compare_existing_and_expected_gle(existing_gle, expected_gle, precision):
|
def compare_existing_and_expected_gle(existing_gle, expected_gle, precision):
|
||||||
|
if len(existing_gle) != len(expected_gle):
|
||||||
|
return False
|
||||||
|
|
||||||
matched = True
|
matched = True
|
||||||
for entry in expected_gle:
|
for entry in expected_gle:
|
||||||
account_existed = False
|
account_existed = False
|
||||||
|
|||||||
Reference in New Issue
Block a user