diff --git a/InvenTree/InvenTree/static/script/inventree/filters.js b/InvenTree/InvenTree/static/script/inventree/filters.js index 69b8ceae45..0ae09b29ad 100644 --- a/InvenTree/InvenTree/static/script/inventree/filters.js +++ b/InvenTree/InvenTree/static/script/inventree/filters.js @@ -112,11 +112,11 @@ function getAvailableTableFilters(tableKey) { 'cascade': { 'type': 'bool', 'description': 'Include stock in sublocations', - 'title': 'sublocations', + 'title': 'Include sublocations', }, 'active': { 'type': 'bool', - 'title': 'part active', + 'title': 'Acitve parts', 'description': 'Show stock for active parts', }, 'status': { @@ -127,8 +127,12 @@ function getAvailableTableFilters(tableKey) { 'DESTROYED': 60, 'LOST': 70 }, + 'title': 'Stock status', 'description': 'Stock status', - } + }, + 'test': { + title: 'A test parameter', + }, }; } @@ -191,7 +195,62 @@ function getFilterOptionList(tableKey, filterKey) { } +/* + * Generate a list of