mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 19:55:29 +00:00
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",
|
width: "80",
|
||||||
options: "Item",
|
options: "Item",
|
||||||
get_query: function () {
|
get_query: function () {
|
||||||
|
let item_group = frappe.query_report.get_filter_value("item_group");
|
||||||
|
|
||||||
return {
|
return {
|
||||||
query: "erpnext.controllers.queries.item_query",
|
query: "erpnext.controllers.queries.item_query",
|
||||||
|
filters: {
|
||||||
|
...(item_group && { item_group }),
|
||||||
|
is_stock_item: 1,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user