mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
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:
@@ -26,6 +26,12 @@ frappe.query_reports["Stock Projected Qty"] = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"fieldname":"item_group",
|
||||||
|
"label": __("Item Group"),
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"options": "Item Group"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"fieldname":"brand",
|
"fieldname":"brand",
|
||||||
"label": __("Brand"),
|
"label": __("Brand"),
|
||||||
@@ -33,4 +39,4 @@ frappe.query_reports["Stock Projected Qty"] = {
|
|||||||
"options": "Brand"
|
"options": "Brand"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ def get_data(filters):
|
|||||||
|
|
||||||
if filters.brand and filters.brand != item.brand:
|
if filters.brand and filters.brand != item.brand:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
elif filters.item_group and filters.item_group != item.item_group:
|
||||||
|
continue
|
||||||
|
|
||||||
elif filters.company and filters.company != company:
|
elif filters.company and filters.company != company:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user