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.
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…
x
Reference in New Issue
Block a user