From 4f0541dc1661d7d6fd8760ce714b926ef7231731 Mon Sep 17 00:00:00 2001 From: Abdeali Chharchhoda Date: Mon, 22 Jul 2024 15:36:51 +0530 Subject: [PATCH] fix: replace `round` with `flt` --- erpnext/accounts/doctype/payment_request/payment_request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/payment_request/payment_request.py b/erpnext/accounts/doctype/payment_request/payment_request.py index 4d8e6bf800a..66fc5ebe7b4 100644 --- a/erpnext/accounts/doctype/payment_request/payment_request.py +++ b/erpnext/accounts/doctype/payment_request/payment_request.py @@ -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