mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Add ability to filter stock by "in_stock" (#376)
This commit is contained in:
parent
001450d3bb
commit
770d9cddb2
4 changed files with 13 additions and 1 deletions
|
|
@ -91,6 +91,7 @@ class _PaginatedPartListState extends PaginatedSearchState<PaginatedPartList> {
|
|||
"active": {
|
||||
"label": L10().filterActive,
|
||||
"help_text": L10().filterActiveDetail,
|
||||
"tristate": true,
|
||||
},
|
||||
"assembly": {
|
||||
"label": L10().filterAssembly,
|
||||
|
|
|
|||
|
|
@ -80,6 +80,12 @@ class _PaginatedStockItemListState extends PaginatedSearchState<PaginatedStockIt
|
|||
|
||||
@override
|
||||
Map<String, Map<String, dynamic>> get filterOptions => {
|
||||
"in_stock": {
|
||||
"default": true,
|
||||
"label": L10().filterInStock,
|
||||
"help_text": L10().filterInStockDetail,
|
||||
"tristate": true,
|
||||
},
|
||||
"cascade": {
|
||||
"default": false,
|
||||
"label": L10().includeSublocations,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue