2
0
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:
Oliver
2023-07-07 21:47:27 +10:00
committed by GitHub
parent 637b058a8a
commit 7ef6da4b2a
3 changed files with 28 additions and 0 deletions

View File

@ -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,