mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
Merge pull request #2561 from nabinhait/fix1
fix reposting gl entries for future vouchers
This commit is contained in:
@@ -245,7 +245,7 @@ def compare_existing_and_expected_gle(existing_gle, expected_gle):
|
|||||||
for entry in expected_gle:
|
for entry in expected_gle:
|
||||||
for e in existing_gle:
|
for e in existing_gle:
|
||||||
if entry.account==e.account and entry.against_account==e.against_account \
|
if entry.account==e.account and entry.against_account==e.against_account \
|
||||||
and entry.cost_center==e.cost_center \
|
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):
|
and (entry.debit != e.debit or entry.credit != e.credit):
|
||||||
matched = False
|
matched = False
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user