perf: don't try to match SLE if count mismatch

This commit is contained in:
Ankush Menat
2021-07-31 20:37:52 +05:30
parent 6b333a780d
commit 679d7dd0cf

View File

@@ -960,6 +960,9 @@ def get_voucherwise_gl_entries(future_stock_vouchers, posting_date):
return gl_entries
def compare_existing_and_expected_gle(existing_gle, expected_gle, precision):
if len(existing_gle) != len(expected_gle):
return False
matched = True
for entry in expected_gle:
account_existed = False