From f0aa1cfad309c7e77733fa78a897771a8fa16334 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 19 May 2015 12:04:34 +0530 Subject: [PATCH] rounding of outstanding amount in payment tool --- erpnext/accounts/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index 0a05275bca6..bd5227aeb3c 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -420,13 +420,12 @@ def get_outstanding_invoices(amount_query, account): payment_amount = -1*payment_amount[0][0] if payment_amount else 0 if d.invoice_amount > payment_amount: - all_outstanding_vouchers.append({ 'voucher_no': d.voucher_no, 'voucher_type': d.voucher_type, 'posting_date': d.posting_date, 'invoice_amount': flt(d.invoice_amount), - 'outstanding_amount': d.invoice_amount - payment_amount + 'outstanding_amount': flt(d.invoice_amount - payment_amount, 2) }) return all_outstanding_vouchers