Skip to content

Commit

Permalink
feat(Stock Balance): add filters from route
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Nov 1, 2023
1 parent 65cc804 commit 38e5e4a
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 38e5e4a

Please sign in to comment.