test: validate payment schedule based on invoice amount

(cherry picked from commit 7785296573)
This commit is contained in:
venkat102
2025-03-21 13:18:19 +05:30
committed by Mergify
parent 1b9980bb86
commit 3b66c48479

View File

@@ -2094,7 +2094,7 @@ class TestPurchaseInvoice(FrappeTestCase, StockTestMixin):
1,
)
pi = make_pi_from_pr(pr.name)
self.assertEqual(pi.payment_schedule[0].payment_amount, 2500)
self.assertEqual(pi.payment_schedule[0].payment_amount, 1000)
automatically_fetch_payment_terms(enable=0)
frappe.db.set_value(