Skip to content

Commit

Permalink
Merge pull request #37123 from blaggacao/fix/payment-request-rounding
Browse files Browse the repository at this point in the history
fix: payment request rounding in multi-currency and on status update
  • Loading branch information
ruthra-kumar authored Oct 10, 2023
2 parents fb7c5f6 + 6e1ad4c commit 3d99e57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def create_payment_entry(self, submit=True):
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

Expand Down

0 comments on commit 3d99e57

Please sign in to comment.