fix: add base_outstanding and base_paid_amount in payment schedule table

(cherry picked from commit 6c2f9a563e)

# Conflicts:
#	erpnext/accounts/doctype/payment_schedule/payment_schedule.json
This commit is contained in:
Sugesh393
2025-03-11 11:49:35 +05:30
committed by Mergify
parent 4df5f18d85
commit 412e6be502
5 changed files with 85 additions and 16 deletions

View File

@@ -2363,6 +2363,9 @@ class AccountsController(TransactionBase):
base_grand_total * flt(d.invoice_portion) / 100, d.precision("base_payment_amount")
)
d.outstanding = d.payment_amount
d.base_outstanding = flt(
d.payment_amount * self.get("conversion_rate"), d.precision("base_outstanding")
)
elif not d.invoice_portion:
d.base_payment_amount = flt(
d.payment_amount * self.get("conversion_rate"), d.precision("base_payment_amount")