mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-09 16:21:19 +00:00
fix: replace round with flt
This commit is contained in:
@@ -306,7 +306,7 @@ class PaymentRequest(Document):
|
||||
if party_account_currency == ref_doc.company_currency and party_account_currency != self.currency:
|
||||
total = ref_doc.get("rounded_total") or ref_doc.get("grand_total")
|
||||
base_total = ref_doc.get("base_rounded_total") or ref_doc.get("base_grand_total")
|
||||
party_amount = round(self.outstanding / total * base_total, self.precision("grand_total"))
|
||||
party_amount = flt(self.outstanding_amount / total * base_total, self.precision("grand_total"))
|
||||
else:
|
||||
party_amount = self.outstanding_amount
|
||||
|
||||
|
||||
Reference in New Issue
Block a user