Now hopefully fixed
This commit is contained in:
parent
8985f1213a
commit
9db47afb7a
@ -54,7 +54,7 @@ def purchase_return_create_journals(inventories, ledgerID):
|
||||
journals[ledger.id].amount += round(item.amount, 2)
|
||||
else:
|
||||
journals[ledger.id] = Journal(debit=-1, cost_center_id=ledger.costcenter_id, ledger_id=ledger.id,
|
||||
amount=item.amount)
|
||||
amount=round(item.amount, 2))
|
||||
journals[otherLedger.id] = Journal(debit=1, cost_center_id=otherLedger.costcenter_id, ledger_id=otherLedger.id,
|
||||
amount=amount)
|
||||
return list(journals.values())
|
||||
|
Loading…
Reference in New Issue
Block a user