mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-27 07:01:13 +01:00
fix: convert invoice_portion value from str to float (#41485)
(cherry picked from commit a1d489195d)
Co-authored-by: Nabin Hait <nabinhait@gmail.com>
This commit is contained in:
@@ -2183,10 +2183,10 @@ class AccountsController(TransactionBase):
|
|||||||
for d in self.get("payment_schedule"):
|
for d in self.get("payment_schedule"):
|
||||||
if d.invoice_portion:
|
if d.invoice_portion:
|
||||||
d.payment_amount = flt(
|
d.payment_amount = flt(
|
||||||
grand_total * flt(d.invoice_portion / 100), d.precision("payment_amount")
|
grand_total * flt(d.invoice_portion) / 100, d.precision("payment_amount")
|
||||||
)
|
)
|
||||||
d.base_payment_amount = flt(
|
d.base_payment_amount = flt(
|
||||||
base_grand_total * flt(d.invoice_portion / 100), d.precision("base_payment_amount")
|
base_grand_total * flt(d.invoice_portion) / 100, d.precision("base_payment_amount")
|
||||||
)
|
)
|
||||||
d.outstanding = d.payment_amount
|
d.outstanding = d.payment_amount
|
||||||
elif not d.invoice_portion:
|
elif not d.invoice_portion:
|
||||||
|
|||||||
Reference in New Issue
Block a user