fix: Set company_currency for Warehouse Tree
This commit is contained in:
parent
504f317434
commit
453964728d
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user