Revert "[Fix] Payment terms validation issue" (#12098)
* Revert "test fixed (#12094)" This reverts commitdd700a550f
. * Revert "[fix] Column Heading in received item to be billed report (#12083)" This reverts commit7c57b6ecd8
. * Revert "[fix] Mobile no search issue in the pos (#12090)" This reverts commitb725affe0c
. * Revert "[Fix] Payment terms validation issue (#12092)" This reverts commit9b8e1cb10e
.
This commit is contained in:
parent
dd700a550f
commit
f592f2c9a9
@ -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"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user