2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-24 07:40:54 +00:00

Adds table filters for stock assigned to a particular customer

This commit is contained in:
Oliver Walters
2020-07-14 15:54:03 +10:00
parent cfd1194a6e
commit 0152ae79ef
3 changed files with 34 additions and 4 deletions

View File

@ -234,9 +234,11 @@ function loadStockTable(table, options) {
var filterListElement = options.filterList || "#filter-list-stock";
var filters = {};
var filterKey = options.filterKey || "stock";
if (!options.disableFilters) {
filters = loadTableFilters("stock");
filters = loadTableFilters(filterKey);
}
var original = {};
@ -245,7 +247,7 @@ function loadStockTable(table, options) {
original[key] = params[key];
}
setupFilterList("stock", table, filterListElement);
setupFilterList(filterKey, table, filterListElement);
// Override the default values, or add new ones
for (var key in params) {