fix: added item_group filter in item_code field in stock balance report (#45340)
* fix: added item_group filter in item_code field in stock balance report
* feat: added filter to not show non stock items
(cherry picked from commit fe43d20545)
Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
This commit is contained in:
@@ -41,8 +41,14 @@ frappe.query_reports["Stock Balance"] = {
|
||||
width: "80",
|
||||
options: "Item",
|
||||
get_query: function () {
|
||||
let item_group = frappe.query_report.get_filter_value("item_group");
|
||||
|
||||
return {
|
||||
query: "erpnext.controllers.queries.item_query",
|
||||
filters: {
|
||||
...(item_group && { item_group }),
|
||||
is_stock_item: 1,
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user