mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
Adding query for item field for some stock reports (#18457)
This commit is contained in:
@@ -22,6 +22,11 @@ frappe.pages['stock-balance'].on_page_load = function(wrapper) {
|
|||||||
label: __('Item'),
|
label: __('Item'),
|
||||||
fieldtype:'Link',
|
fieldtype:'Link',
|
||||||
options:'Item',
|
options:'Item',
|
||||||
|
get_query: function() {
|
||||||
|
return {
|
||||||
|
query: "erpnext.controllers.queries.item_query"
|
||||||
|
}
|
||||||
|
},
|
||||||
change: function() {
|
change: function() {
|
||||||
page.item_dashboard.start = 0;
|
page.item_dashboard.start = 0;
|
||||||
page.item_dashboard.refresh();
|
page.item_dashboard.refresh();
|
||||||
|
|||||||
@@ -8,7 +8,12 @@ frappe.query_reports["Item Price Stock"] = {
|
|||||||
"fieldname":"item_code",
|
"fieldname":"item_code",
|
||||||
"label": __("Item"),
|
"label": __("Item"),
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Item"
|
"options": "Item",
|
||||||
|
"get_query": function() {
|
||||||
|
return {
|
||||||
|
query: "erpnext.controllers.queries.item_query"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,12 @@ frappe.query_reports["Stock Ageing"] = {
|
|||||||
"fieldname":"item_code",
|
"fieldname":"item_code",
|
||||||
"label": __("Item"),
|
"label": __("Item"),
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Item"
|
"options": "Item",
|
||||||
|
"get_query": function() {
|
||||||
|
return {
|
||||||
|
query: "erpnext.controllers.queries.item_query"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname":"brand",
|
"fieldname":"brand",
|
||||||
@@ -37,4 +42,4 @@ frappe.query_reports["Stock Ageing"] = {
|
|||||||
"options": "Brand"
|
"options": "Brand"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,11 @@ frappe.query_reports["Stock Analytics"] = {
|
|||||||
label: __("Item"),
|
label: __("Item"),
|
||||||
fieldtype: "Link",
|
fieldtype: "Link",
|
||||||
options:"Item",
|
options:"Item",
|
||||||
|
get_query: function() {
|
||||||
|
return {
|
||||||
|
query: "erpnext.controllers.queries.item_query"
|
||||||
|
}
|
||||||
|
},
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user