Merge pull request #37123 from blaggacao/fix/payment-request-rounding

fix: payment request rounding in multi-currency and on status update
This commit is contained in:
ruthra kumar
2023-10-10 10:07:25 +05:30
committed by GitHub

View File

@@ -249,7 +249,7 @@ class PaymentRequest(Document):
if (
party_account_currency == ref_doc.company_currency and party_account_currency != self.currency
):
party_amount = ref_doc.base_grand_total
party_amount = ref_doc.get("base_rounded_total") or ref_doc.get("base_grand_total")
else:
party_amount = self.grand_total