refactor: better error message

This commit is contained in:
ruthra kumar 2024-01-14 18:04:15 +05:30
parent cdd0acc672
commit b4354cbc8d

View File

@ -60,7 +60,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)
)
)