mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-15 08:17:15 +00:00
[minor] set company_currency as account_currency in general ledger if party type is employee
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user