fix: indicate correct currency code for the payment

This commit is contained in:
“Khushi
2024-04-09 17:06:56 +05:30
parent f189be501b
commit 549ea8a63c

View File

@@ -1107,9 +1107,11 @@ class PaymentEntry(AccountsController):
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,
)
]