Patch fixed

This commit is contained in:
Nabin Hait
2015-09-03 19:18:00 +05:30
parent 11a746d363
commit 34fe81f7eb
2 changed files with 6 additions and 8 deletions

View File

@@ -178,7 +178,7 @@ def validate_party_account(party):
for d in party.get("accounts"):
if d.company in companies_with_different_currency:
companies_with_different_currency.remove(d.company)
selected_account_currency = frappe.db.get_value("Account", d.account, "account_currency")
if selected_account_currency != party.party_account_currency:
frappe.throw(_("Account {0} is invalid, account currency must be {1}")