[Fix] General ledger default_currency issue for member party type (#14172)

This commit is contained in:
rohitwaghchaure 2018-05-22 09:10:01 +05:30 committed by Nabin Hait
parent bcbe32ce7c
commit 742d3e5549

View File

@ -71,8 +71,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, "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