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.
diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py
index c26715a..c8d30c8 100644
--- a/erpnext/controllers/accounts_controller.py
+++ b/erpnext/controllers/accounts_controller.py
@@ -692,11 +692,9 @@
 		if self.get("payment_schedule"):
 			total = 0
 			for d in self.get("payment_schedule"):
-				total += flt(d.payment_amount, d.precision("payment_amount"))
+				total += flt(d.payment_amount)
 
-			grand_total = flt(self.get("rounded_total"), self.precision("rounded_total")) \
-				or flt(self.grand_total, self.precision("grand_total"))
-
+			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"))