From 9db47afb7aedb46d804313d79a653084c229ee4e Mon Sep 17 00:00:00 2001 From: Tanshu Date: Sat, 18 May 2013 12:23:44 +0530 Subject: [PATCH] Now hopefully fixed --- brewman/brewman/views/services/voucher/purchase_return.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brewman/brewman/views/services/voucher/purchase_return.py b/brewman/brewman/views/services/voucher/purchase_return.py index 9f234996..2789f5dc 100644 --- a/brewman/brewman/views/services/voucher/purchase_return.py +++ b/brewman/brewman/views/services/voucher/purchase_return.py @@ -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())