Skip to content

Commit

Permalink
feat(Stock Balance): add filters from route (backport #37836) (#37839)
Browse files Browse the repository at this point in the history
feat(Stock Balance): add filters from route

(cherry picked from commit 38e5e4a)

Co-authored-by: barredterra <[email protected]>
  • Loading branch information
mergify[bot] and barredterra authored Nov 2, 2023
1 parent e616a0b commit e8a706a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/stock/page/stock_balance/stock_balance.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ frappe.pages['stock-balance'].on_page_load = function(wrapper) {
label: __('Warehouse'),
fieldtype:'Link',
options:'Warehouse',
default: frappe.route_options && frappe.route_options.warehouse,
change: function() {
page.item_dashboard.start = 0;
page.item_dashboard.refresh();
Expand All @@ -22,6 +23,7 @@ frappe.pages['stock-balance'].on_page_load = function(wrapper) {
label: __('Item'),
fieldtype:'Link',
options:'Item',
default: frappe.route_options && frappe.route_options.item_code,
change: function() {
page.item_dashboard.start = 0;
page.item_dashboard.refresh();
Expand All @@ -33,6 +35,7 @@ frappe.pages['stock-balance'].on_page_load = function(wrapper) {
label: __('Item Group'),
fieldtype:'Link',
options:'Item Group',
default: frappe.route_options && frappe.route_options.item_group,
change: function() {
page.item_dashboard.start = 0;
page.item_dashboard.refresh();
Expand Down

0 comments on commit e8a706a

Please sign in to comment.