From 573d1dd31feda2ff1ba56eb94f94597ffecc3257 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 28 Mar 2019 20:39:49 +0530 Subject: [PATCH] fix: bank reconciliation not working --- .../accounts/doctype/bank_reconciliation/bank_reconciliation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/bank_reconciliation/bank_reconciliation.py b/erpnext/accounts/doctype/bank_reconciliation/bank_reconciliation.py index dafa330b54..fc0654e1bf 100644 --- a/erpnext/accounts/doctype/bank_reconciliation/bank_reconciliation.py +++ b/erpnext/accounts/doctype/bank_reconciliation/bank_reconciliation.py @@ -80,7 +80,7 @@ class BankReconciliation(Document): for d in entries: row = self.append('payment_entries', {}) - amount = d.get('debit', 0) - d.get('credit', 0) + amount = flt(d.get('debit', 0)) - flt(d.get('credit', 0)) formatted_amount = fmt_money(abs(amount), 2, d.account_currency) d.amount = formatted_amount + " " + (_("Dr") if amount > 0 else _("Cr"))