mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 18:25:26 +00:00
Add extra filtering options for stock items (#394)
This commit is contained in:
@ -69,6 +69,12 @@ class _PaginatedStockItemListState extends PaginatedSearchState<PaginatedStockIt
|
||||
@override
|
||||
Map<String, Map<String, dynamic>> get filterOptions {
|
||||
Map<String, Map<String, dynamic>> filters = {
|
||||
"available": {
|
||||
"default": null,
|
||||
"label": L10().available,
|
||||
"help_text": L10().availableStock,
|
||||
"tristate": true,
|
||||
},
|
||||
"in_stock": {
|
||||
"default": true,
|
||||
"label": L10().filterInStock,
|
||||
@ -81,6 +87,12 @@ class _PaginatedStockItemListState extends PaginatedSearchState<PaginatedStockIt
|
||||
"help_text": L10().includeSublocationsDetail,
|
||||
"tristate": false,
|
||||
},
|
||||
"external": {
|
||||
"default": null,
|
||||
"label": L10().filterExternal,
|
||||
"help_text": L10().filterExternalDetail,
|
||||
"tristate": true,
|
||||
},
|
||||
"serialized": {
|
||||
"label": L10().filterSerialized,
|
||||
"help_text": L10().filterSerializedDetail,
|
||||
|
Reference in New Issue
Block a user