Browse Source
fix: Nonstock item showing in Itemwise Recommended Reorder Level report (#28873)
develop
aaronmenezes
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
erpnext/stock/report/itemwise_recommended_reorder_level/itemwise_recommended_reorder_level.py
|
|
@ -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 {}""" |
|
|
|