Merge pull request #40924 from khushi8112/indicate-correct-currency-code-for-the-payment

Fix: Indicate correct currency code for the payment
This commit is contained in:
Deepesh Garg
2024-04-10 22:22:28 +05:30
committed by GitHub

View File

@@ -1125,9 +1125,11 @@ class PaymentEntry(AccountsController):
else:
remarks = [
_("Amount {0} {1} {2} {3}").format(
_(self.party_account_currency),
_(self.paid_to_account_currency)
if self.payment_type == "Receive"
else _(self.paid_from_account_currency),
self.paid_amount if self.payment_type == "Receive" else self.received_amount,
_("received from") if self.payment_type == "Receive" else _("to"),
_("received from") if self.payment_type == "Receive" else _("paid to"),
self.party,
)
]