From f592f2c9a943f7b737620c32a8c4c68ffd769562 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 19 Dec 2017 11:31:34 +0530 Subject: [PATCH] Revert "[Fix] Payment terms validation issue" (#12098) * Revert "test fixed (#12094)" This reverts commit dd700a550fbbb38bea65973c097d15da98b1bf18. * Revert "[fix] Column Heading in received item to be billed report (#12083)" This reverts commit 7c57b6ecd8d414dcfe76119a3e6d2739ebb68f81. * Revert "[fix] Mobile no search issue in the pos (#12090)" This reverts commit b725affe0c5f657b094e367dcda4cb87121bd5d2. * Revert "[Fix] Payment terms validation issue (#12092)" This reverts commit 9b8e1cb10e1a3a6a2d865c2cd906c47635e52dfc. --- erpnext/controllers/accounts_controller.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index c26715af55f..c8d30c8e0b6 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -692,11 +692,9 @@ class AccountsController(TransactionBase): if self.get("payment_schedule"): total = 0 for d in self.get("payment_schedule"): - total += flt(d.payment_amount, d.precision("payment_amount")) - - grand_total = flt(self.get("rounded_total"), self.precision("rounded_total")) \ - or flt(self.grand_total, self.precision("grand_total")) + total += flt(d.payment_amount) + grand_total = self.get("rounded_total") or self.grand_total if total != grand_total: frappe.throw(_("Total Payment Amount in Payment Schedule must be equal to Grand / Rounded Total"))