Skip to content

Commit 2f9703c

Browse files
mbauskarnabinhait
authored andcommitted
[minor] set company_currency as account_currency in general ledger if party type is employee
1 parent 46b6d4e commit 2f9703c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

erpnext/accounts/report/general_ledger/general_ledger.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ def set_account_currency(filters):
6666
if gle_currency:
6767
account_currency = gle_currency
6868
else:
69-
account_currency = frappe.db.get_value(filters.party_type, filters.party, "default_currency")
69+
account_currency = None if filters.party_type == "Employee" else \
70+
frappe.db.get_value(filters.party_type, filters.party, "default_currency")
7071

7172
filters["account_currency"] = account_currency or filters.company_currency
7273

0 commit comments

Comments
 (0)