From b76d2d4d98b151834e5ff4c11399547e1dda8566 Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Wed, 12 Feb 2020 13:22:05 +0530 Subject: [PATCH] Fix: Syntax error in `get_child_warehouses` --- erpnext/stock/doctype/warehouse/warehouse.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/stock/doctype/warehouse/warehouse.py b/erpnext/stock/doctype/warehouse/warehouse.py index 6ed6044f32..eb4867d2cf 100644 --- a/erpnext/stock/doctype/warehouse/warehouse.py +++ b/erpnext/stock/doctype/warehouse/warehouse.py @@ -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 = [] @@ -199,4 +199,4 @@ def get_warehouses_based_on_account(account, company=None): frappe.throw(_("Warehouse not found against the account {0}") .format(account)) - return warehouses \ No newline at end of file + return warehouses