revert from trying to adjust payment schedule based on old recurring_document
diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py
index 3464093..0e54c4a 100644
--- a/erpnext/controllers/accounts_controller.py
+++ b/erpnext/controllers/accounts_controller.py
@@ -640,12 +640,7 @@
total += flt(d.payment_amount)
if total != self.grand_total:
- # Try to recover if the Payment Term is a very simple one.
- # If there is just one Payment Term and the invoice portion is 100:
- if len(self.payment_schedule) == 1 and self.payment_schedule[0].invoice_portion == 100:
- self.payment_schedule[0].update({'payment_amount': self.grand_total})
- else:
- frappe.throw(_("Total Payment Amount in Payment Schedule must be equal to Grand Total"))
+ frappe.throw(_("Total Payment Amount in Payment Schedule must be equal to Grand Total"))
@frappe.whitelist()