Now hopefully fixed

This commit is contained in:
Tanshu 2013-05-18 12:23:44 +05:30
parent 8985f1213a
commit 9db47afb7a

View File

@ -54,7 +54,7 @@ def purchase_return_create_journals(inventories, ledgerID):
journals[ledger.id].amount += round(item.amount, 2) journals[ledger.id].amount += round(item.amount, 2)
else: else:
journals[ledger.id] = Journal(debit=-1, cost_center_id=ledger.costcenter_id, ledger_id=ledger.id, 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, journals[otherLedger.id] = Journal(debit=1, cost_center_id=otherLedger.costcenter_id, ledger_id=otherLedger.id,
amount=amount) amount=amount)
return list(journals.values()) return list(journals.values())