* fix: correct field for GLE against account in PR * fix: remove incorrect field check from reposting
This commit is contained in:
parent
e014d7a00e
commit
c7df759324
@ -966,7 +966,7 @@ def compare_existing_and_expected_gle(existing_gle, expected_gle, precision):
|
|||||||
for e in existing_gle:
|
for e in existing_gle:
|
||||||
if entry.account == e.account:
|
if entry.account == e.account:
|
||||||
account_existed = True
|
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 (not entry.cost_center or not e.cost_center or entry.cost_center == e.cost_center)
|
||||||
and ( flt(entry.debit, precision) != flt(e.debit, precision) or
|
and ( flt(entry.debit, precision) != flt(e.debit, precision) or
|
||||||
flt(entry.credit, precision) != flt(e.credit, precision))):
|
flt(entry.credit, precision) != flt(e.credit, precision))):
|
||||||
|
@ -415,7 +415,7 @@ class PurchaseReceipt(BuyingController):
|
|||||||
"cost_center": cost_center,
|
"cost_center": cost_center,
|
||||||
"debit": debit,
|
"debit": debit,
|
||||||
"credit": credit,
|
"credit": credit,
|
||||||
"against_account": against_account,
|
"against": against_account,
|
||||||
"remarks": remarks,
|
"remarks": remarks,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user