Fix: Syntax error in get_child_warehouses
This commit is contained in:
parent
f00de72744
commit
b76d2d4d98
@ -180,7 +180,7 @@ def get_child_warehouses(warehouse):
|
|||||||
lft, rgt = frappe.get_cached_value("Warehouse", warehouse, [lft, rgt])
|
lft, rgt = frappe.get_cached_value("Warehouse", warehouse, [lft, rgt])
|
||||||
|
|
||||||
return frappe.db.sql_list("""select name from `tabWarehouse`
|
return frappe.db.sql_list("""select name from `tabWarehouse`
|
||||||
where lft >= %s and rgt =< %s""", (lft, rgt))
|
where lft >= %s and rgt <= %s""", (lft, rgt))
|
||||||
|
|
||||||
def get_warehouses_based_on_account(account, company=None):
|
def get_warehouses_based_on_account(account, company=None):
|
||||||
warehouses = []
|
warehouses = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user