refactor: better error message
(cherry picked from commit b4354cbc8dfb22fafaed2cd39b92c438e5f199db)
This commit is contained in:
parent
dbbba046ab
commit
f609b8ae5d
@ -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)
|
||||
)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user