Stock Projected Qty Item Group Filter (#15340)

* Update stock_projected_qty.js

* Update stock_projected_qty.js

* Update stock_projected_qty.py

* Update stock_projected_qty.js
This commit is contained in:
Nagarajan 2018-09-07 16:20:18 +05:30 committed by Nabin Hait
parent 562d942a7d
commit 8be8345b65
2 changed files with 10 additions and 1 deletions

View File

@ -26,6 +26,12 @@ frappe.query_reports["Stock Projected Qty"] = {
}
}
},
{
"fieldname":"item_group",
"label": __("Item Group"),
"fieldtype": "Link",
"options": "Item Group"
},
{
"fieldname":"brand",
"label": __("Brand"),
@ -33,4 +39,4 @@ frappe.query_reports["Stock Projected Qty"] = {
"options": "Brand"
}
]
}
}

View File

@ -39,6 +39,9 @@ def get_data(filters):
if filters.brand and filters.brand != item.brand:
continue
elif filters.item_group and filters.item_group != item.item_group:
continue
elif filters.company and filters.company != company:
continue