[minor] set company_currency as account_currency in general ledger if party type is employee

This commit is contained in:
mbauskar 2017-04-11 15:10:25 +05:30 committed by Nabin Hait
parent 46b6d4ea47
commit 2f9703c20e

View File

@ -66,7 +66,8 @@ def set_account_currency(filters):
if gle_currency:
account_currency = gle_currency
else:
account_currency = frappe.db.get_value(filters.party_type, filters.party, "default_currency")
account_currency = None if filters.party_type == "Employee" else \
frappe.db.get_value(filters.party_type, filters.party, "default_currency")
filters["account_currency"] = account_currency or filters.company_currency