fix: remove incorrect condition in GLE comparison (#26713)

This commit is contained in:
Ankush
2021-07-29 19:56:36 +05:30
committed by GitHub
parent 6b4b80a4a4
commit b1e932a6f8

View File

@@ -418,7 +418,7 @@ def compare_existing_and_expected_gle(existing_gle, expected_gle):
for e in existing_gle:
if entry.account == e.account:
account_existed = True
if entry.account == e.account and entry.against_account == e.against_account \
if entry.account == e.account \
and (not entry.cost_center or not e.cost_center or entry.cost_center == e.cost_center) \
and (entry.debit != e.debit or entry.credit != e.credit):
matched = False