Merge pull request #31223 from dj12djdjs/fix-validation-message

fix: display currencies in validation message.
This commit is contained in:
Deepesh Garg 2022-06-06 09:06:52 +05:30 committed by GitHub
commit c21826e07d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1465,8 +1465,8 @@ class AccountsController(TransactionBase):
if not party_gle_currency and (party_account_currency != self.currency):
frappe.throw(
_("Party Account {0} currency and document currency should be same").format(
frappe.bold(party_account)
_("Party Account {0} currency ({1}) and document currency ({2}) should be same").format(
frappe.bold(party_account), party_account_currency, self.currency
)
)