diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py index c8d30c8e0b6..10e1d9270f3 100644 --- a/erpnext/controllers/accounts_controller.py +++ b/erpnext/controllers/accounts_controller.py @@ -693,8 +693,9 @@ class AccountsController(TransactionBase): total = 0 for d in self.get("payment_schedule"): total += flt(d.payment_amount) + total = flt(total, self.precision("grand_total")) - grand_total = self.get("rounded_total") or self.grand_total + grand_total = flt(self.get("rounded_total") or self.grand_total, self.precision('grand_total')) if total != grand_total: frappe.throw(_("Total Payment Amount in Payment Schedule must be equal to Grand / Rounded Total"))