fix: added item_group filter in item_code field in stock balance report (backport #45340) (#45389)

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:
mergify[bot]
2025-01-23 11:25:33 +05:30
committed by GitHub
parent 767529f0ec
commit 412e22fb4e

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