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
This commit is contained in:
Mihir Kandoi
2025-01-23 11:17:35 +05:30
committed by GitHub
parent 8e18c572f4
commit fe43d20545

View File

@@ -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,
},
};
},
},