fix: Set company_currency for Warehouse Tree

This commit is contained in:
Faris Ansari 2019-02-09 20:27:42 +05:30
parent 504f317434
commit 453964728d

View File

@ -157,6 +157,8 @@ def get_children(doctype, parent=None, company=None, is_root=False):
# return warehouses
for wh in warehouses:
wh["balance"] = get_stock_value_from_bin(warehouse=wh.value)
if company:
wh["company_currency"] = frappe.db.get_value('Company', company, 'default_currency')
return warehouses
@frappe.whitelist()