fix: payment request rounding in multi-currency and on status update

(cherry picked from commit 6e1ad4c5bd)
This commit is contained in:
David Arnold
2023-09-17 20:17:40 +02:00
committed by Mergify
parent 24852e46c1
commit eed58634ba

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