Adding query for item field for some stock reports (#18457)

This commit is contained in:
bghayad
2019-08-23 10:30:39 +03:00
committed by Nabin Hait
parent 8811a8c9b6
commit f254d8c5ee
4 changed files with 24 additions and 4 deletions

View File

@@ -22,6 +22,11 @@ frappe.pages['stock-balance'].on_page_load = function(wrapper) {
label: __('Item'),
fieldtype:'Link',
options:'Item',
get_query: function() {
return {
query: "erpnext.controllers.queries.item_query"
}
},
change: function() {
page.item_dashboard.start = 0;
page.item_dashboard.refresh();

View File

@@ -8,7 +8,12 @@ frappe.query_reports["Item Price Stock"] = {
"fieldname":"item_code",
"label": __("Item"),
"fieldtype": "Link",
"options": "Item"
"options": "Item",
"get_query": function() {
return {
query: "erpnext.controllers.queries.item_query"
}
}
}
]
}
}

View File

@@ -28,7 +28,12 @@ frappe.query_reports["Stock Ageing"] = {
"fieldname":"item_code",
"label": __("Item"),
"fieldtype": "Link",
"options": "Item"
"options": "Item",
"get_query": function() {
return {
query: "erpnext.controllers.queries.item_query"
}
}
},
{
"fieldname":"brand",
@@ -37,4 +42,4 @@ frappe.query_reports["Stock Ageing"] = {
"options": "Brand"
}
]
}
}

View File

@@ -16,6 +16,11 @@ frappe.query_reports["Stock Analytics"] = {
label: __("Item"),
fieldtype: "Link",
options:"Item",
get_query: function() {
return {
query: "erpnext.controllers.queries.item_query"
}
},
default: "",
},
{