Merge branch 'master' into develop

This commit is contained in:
Ameya Shenoy
2018-05-22 09:18:38 +00:00
15 changed files with 151 additions and 35 deletions

View File

@@ -87,8 +87,8 @@ def set_account_currency(filters):
if gle_currency:
account_currency = gle_currency
else:
account_currency = None if filters.party_type in ["Employee", "Student", "Shareholder"] else \
frappe.db.get_value(filters.party_type, filters.party[0], "default_currency")
account_currency = (None if filters.party_type in ["Employee", "Student", "Shareholder", "Member"] else
frappe.db.get_value(filters.party_type, filters.party, "default_currency"))
filters["account_currency"] = account_currency or filters.company_currency