refactor: better error message

(cherry picked from commit b4354cbc8dfb22fafaed2cd39b92c438e5f199db)
This commit is contained in:
ruthra kumar 2024-01-14 18:04:15 +05:30 committed by Mergify
parent dbbba046ab
commit f609b8ae5d

View File

@ -61,7 +61,9 @@ class BankTransaction(Document):
if self.currency != account_currency:
frappe.throw(
_("Currency {0} cannot be different from Bank Account({1}) Currency: {2}").format(
_(
"Transaction currency: {0} cannot be different from Bank Account({1}) currency: {2}"
).format(
frappe.bold(self.currency), frappe.bold(self.bank_account), frappe.bold(account_currency)
)
)