Merge pull request #21911 from rohitwaghchaure/fixed-comparison-operator

fix: comparison operator
This commit is contained in:
rohitwaghchaure
2020-05-25 16:39:37 +05:30
committed by GitHub

View File

@@ -180,7 +180,7 @@ def get_child_warehouses(warehouse):
lft, rgt = frappe.get_cached_value("Warehouse", warehouse, ["lft", "rgt"])
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):
warehouses = []