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:
commit
3d99e5757e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user