fix: Nonstock item showing in Itemwise Recommended Reorder Level report bp (#28873)

(cherry picked from commit 304aa44feb)

Co-authored-by: aaronmenezes <ron2805@gmail.com>
This commit is contained in:
mergify[bot]
2021-12-14 15:19:11 +05:30
committed by GitHub
parent 187a69e390
commit b3720f62d8

View File

@@ -48,6 +48,7 @@ def get_item_info(filters):
conditions = [get_item_group_condition(filters.get("item_group"))]
if filters.get("brand"):
conditions.append("item.brand=%(brand)s")
conditions.append("is_stock_item = 1")
return frappe.db.sql("""select name, item_name, description, brand, item_group,
safety_stock, lead_time_days from `tabItem` item where {}"""