mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 13:36:50 +00:00
Add ability to filter stock by "in_stock" (#376)
This commit is contained in:
parent
001450d3bb
commit
770d9cddb2
@ -1,3 +1,8 @@
|
|||||||
|
### -
|
||||||
|
---
|
||||||
|
|
||||||
|
- Improved filters for stock list
|
||||||
|
|
||||||
### 0.12.2 - June 2023
|
### 0.12.2 - June 2023
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -7,6 +12,7 @@
|
|||||||
- Bug fix for scrolling long lists
|
- Bug fix for scrolling long lists
|
||||||
|
|
||||||
### 0.12.1 - May 2023
|
### 0.12.1 - May 2023
|
||||||
|
---
|
||||||
|
|
||||||
- Fixes bug in purchase order form
|
- Fixes bug in purchase order form
|
||||||
|
|
||||||
|
@ -186,7 +186,6 @@ class InvenTreeStockItem extends InvenTreeModel {
|
|||||||
"part_detail": "true",
|
"part_detail": "true",
|
||||||
"location_detail": "true",
|
"location_detail": "true",
|
||||||
"supplier_detail": "true",
|
"supplier_detail": "true",
|
||||||
"in_stock": "true",
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,6 +91,7 @@ class _PaginatedPartListState extends PaginatedSearchState<PaginatedPartList> {
|
|||||||
"active": {
|
"active": {
|
||||||
"label": L10().filterActive,
|
"label": L10().filterActive,
|
||||||
"help_text": L10().filterActiveDetail,
|
"help_text": L10().filterActiveDetail,
|
||||||
|
"tristate": true,
|
||||||
},
|
},
|
||||||
"assembly": {
|
"assembly": {
|
||||||
"label": L10().filterAssembly,
|
"label": L10().filterAssembly,
|
||||||
|
@ -80,6 +80,12 @@ class _PaginatedStockItemListState extends PaginatedSearchState<PaginatedStockIt
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Map<String, Map<String, dynamic>> get filterOptions => {
|
Map<String, Map<String, dynamic>> get filterOptions => {
|
||||||
|
"in_stock": {
|
||||||
|
"default": true,
|
||||||
|
"label": L10().filterInStock,
|
||||||
|
"help_text": L10().filterInStockDetail,
|
||||||
|
"tristate": true,
|
||||||
|
},
|
||||||
"cascade": {
|
"cascade": {
|
||||||
"default": false,
|
"default": false,
|
||||||
"label": L10().includeSublocations,
|
"label": L10().includeSublocations,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user