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:
parent
562d942a7d
commit
8be8345b65
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user