Skip to content

Commit

Permalink
fix: Always recalculate payment amounts when there is a payment sched…
Browse files Browse the repository at this point in the history
…ule.
  • Loading branch information
bosue committed Nov 11, 2023
1 parent 89d9fcd commit 479a824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/accounts_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1941,7 +1941,7 @@ def set_payment_schedule(self):
)
self.append("payment_schedule", data)

if not automatically_fetch_payment_terms:
if self.get("payment_schedule"):
for d in self.get("payment_schedule"):
if d.invoice_portion:
d.payment_amount = flt(
Expand Down

0 comments on commit 479a824

Please sign in to comment.