chore: translate currency (#36777)

chore: translate currency
This commit is contained in:
Abdo 2023-08-26 17:07:28 +03:00 committed by GitHub
parent 35f72a17db
commit 6b75c03f34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -999,14 +999,14 @@ class PaymentEntry(AccountsController):
if self.payment_type == "Internal Transfer":
remarks = [
_("Amount {0} {1} transferred from {2} to {3}").format(
self.paid_from_account_currency, self.paid_amount, self.paid_from, self.paid_to
_(self.paid_from_account_currency), self.paid_amount, self.paid_from, self.paid_to
)
]
else:
remarks = [
_("Amount {0} {1} {2} {3}").format(
self.party_account_currency,
_(self.party_account_currency),
self.paid_amount if self.payment_type == "Receive" else self.received_amount,
_("received from") if self.payment_type == "Receive" else _("to"),
self.party,
@ -1023,14 +1023,14 @@ class PaymentEntry(AccountsController):
if d.allocated_amount:
remarks.append(
_("Amount {0} {1} against {2} {3}").format(
self.party_account_currency, d.allocated_amount, d.reference_doctype, d.reference_name
_(self.party_account_currency), d.allocated_amount, d.reference_doctype, d.reference_name
)
)
for d in self.get("deductions"):
if d.amount:
remarks.append(
_("Amount {0} {1} deducted against {2}").format(self.company_currency, d.amount, d.account)
_("Amount {0} {1} deducted against {2}").format(_(self.company_currency), d.amount, d.account)
)
self.set("remarks", "\n".join(remarks))