Skip to content

Commit

Permalink
fix: display currencies in validation message.
Browse files Browse the repository at this point in the history
(cherry picked from commit 3a1c923)
  • Loading branch information
dj12djdjs authored and mergify[bot] committed Jun 6, 2022
1 parent b31709c commit ef22337
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions erpnext/controllers/accounts_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1463,8 +1463,10 @@ def validate_party_account_currency(self):

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
)
)

Expand Down

0 comments on commit ef22337

Please sign in to comment.