mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-30 21:05:42 +00:00 
			
		
		
		
	Add extra filtering options for stock items (#394)
This commit is contained in:
		| @@ -1,9 +1,16 @@ | |||||||
|  | ### 0.12.5 - July 2023 | ||||||
|  | --- | ||||||
|  |  | ||||||
|  | - Adds extra filtering options for stock items | ||||||
|  | - Updated translations | ||||||
|  |  | ||||||
| ### 0.12.4 - July 2023 | ### 0.12.4 - July 2023 | ||||||
| --- | --- | ||||||
|  |  | ||||||
| - Pre-fill stock location when transferring stock amount | - Pre-fill stock location when transferring stock amount | ||||||
| - UX improvements for searching data | - UX improvements for searching data | ||||||
| - Updated translations | - Updated translations | ||||||
|  |  | ||||||
| ### - 0.12.3 - June 2023 | ### - 0.12.3 - June 2023 | ||||||
| --- | --- | ||||||
|  |  | ||||||
|   | |||||||
| @@ -76,6 +76,9 @@ | |||||||
|   "attention": "Attention", |   "attention": "Attention", | ||||||
|   "@attention": {}, |   "@attention": {}, | ||||||
|  |  | ||||||
|  |    "available": "Available", | ||||||
|  |    "@available": {}, | ||||||
|  |  | ||||||
|   "availableStock": "Available Stock", |   "availableStock": "Available Stock", | ||||||
|   "@availableStock": {}, |   "@availableStock": {}, | ||||||
|  |  | ||||||
| @@ -357,6 +360,12 @@ | |||||||
|   "filterComponentDetail": "Show component parts", |   "filterComponentDetail": "Show component parts", | ||||||
|   "@filterComponentDetail": {}, |   "@filterComponentDetail": {}, | ||||||
|  |  | ||||||
|  |   "filterExternal": "External", | ||||||
|  |   "@filterExternal": {}, | ||||||
|  |  | ||||||
|  |   "filterExternalDetail": "Show stock in external locations", | ||||||
|  |   "@filterExternalDetail": {}, | ||||||
|  |  | ||||||
|   "filterInStock": "In Stock", |   "filterInStock": "In Stock", | ||||||
|   "@filterInStock": {}, |   "@filterInStock": {}, | ||||||
|  |  | ||||||
|   | |||||||
| @@ -69,6 +69,12 @@ class _PaginatedStockItemListState extends PaginatedSearchState<PaginatedStockIt | |||||||
|   @override |   @override | ||||||
|   Map<String, Map<String, dynamic>> get filterOptions { |   Map<String, Map<String, dynamic>> get filterOptions { | ||||||
|     Map<String, Map<String, dynamic>> filters = { |     Map<String, Map<String, dynamic>> filters = { | ||||||
|  |       "available": { | ||||||
|  |         "default": null, | ||||||
|  |         "label": L10().available, | ||||||
|  |         "help_text": L10().availableStock, | ||||||
|  |         "tristate": true, | ||||||
|  |       }, | ||||||
|       "in_stock": { |       "in_stock": { | ||||||
|         "default": true, |         "default": true, | ||||||
|         "label": L10().filterInStock, |         "label": L10().filterInStock, | ||||||
| @@ -81,6 +87,12 @@ class _PaginatedStockItemListState extends PaginatedSearchState<PaginatedStockIt | |||||||
|         "help_text": L10().includeSublocationsDetail, |         "help_text": L10().includeSublocationsDetail, | ||||||
|         "tristate": false, |         "tristate": false, | ||||||
|       }, |       }, | ||||||
|  |       "external": { | ||||||
|  |         "default": null, | ||||||
|  |         "label": L10().filterExternal, | ||||||
|  |         "help_text": L10().filterExternalDetail, | ||||||
|  |         "tristate": true, | ||||||
|  |       }, | ||||||
|       "serialized": { |       "serialized": { | ||||||
|         "label": L10().filterSerialized, |         "label": L10().filterSerialized, | ||||||
|         "help_text": L10().filterSerializedDetail, |         "help_text": L10().filterSerializedDetail, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user