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
|
# return warehouses
|
||||||
for wh in warehouses:
|
for wh in warehouses:
|
||||||
wh["balance"] = get_stock_value_from_bin(warehouse=wh.value)
|
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
|
return warehouses
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user