mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-30 21:05:42 +00:00 
			
		
		
		
	Add new stock code
This commit is contained in:
		| @@ -57,6 +57,7 @@ class InvenTreeStockItem extends InvenTreeModel { | |||||||
|   static const int DESTROYED = 60; |   static const int DESTROYED = 60; | ||||||
|   static const int REJECTED = 65; |   static const int REJECTED = 65; | ||||||
|   static const int LOST = 70; |   static const int LOST = 70; | ||||||
|  |   static const int RETURNED = 85; | ||||||
|  |  | ||||||
|   String statusLabel(BuildContext context) { |   String statusLabel(BuildContext context) { | ||||||
|  |  | ||||||
| @@ -73,6 +74,8 @@ class InvenTreeStockItem extends InvenTreeModel { | |||||||
|         return I18N.of(context).rejected; |         return I18N.of(context).rejected; | ||||||
|       case LOST: |       case LOST: | ||||||
|         return I18N.of(context).lost; |         return I18N.of(context).lost; | ||||||
|  |       case RETURNED: | ||||||
|  |         return I18N.of(context).returned; | ||||||
|       default: |       default: | ||||||
|         return status.toString(); |         return status.toString(); | ||||||
|     } |     } | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								lib/l10n
									
									
									
									
									
								
							
							
								
								
								
								
								
							
						
						
									
										2
									
								
								lib/l10n
									
									
									
									
									
								
							 Submodule lib/l10n updated: 807a0191b4...2fe34df1dd
									
								
							| @@ -17,7 +17,7 @@ import '../api.dart'; | |||||||
|  |  | ||||||
| class PartSearchDelegate extends SearchDelegate<InvenTreePart> { | class PartSearchDelegate extends SearchDelegate<InvenTreePart> { | ||||||
|  |  | ||||||
|   final key = GlobalKey<ScaffoldState>(); |   final partSearchKey = GlobalKey<ScaffoldState>(); | ||||||
|  |  | ||||||
|   BuildContext context; |   BuildContext context; | ||||||
|  |  | ||||||
| @@ -203,7 +203,7 @@ class PartSearchDelegate extends SearchDelegate<InvenTreePart> { | |||||||
|  |  | ||||||
| class StockSearchDelegate extends SearchDelegate<InvenTreeStockItem> { | class StockSearchDelegate extends SearchDelegate<InvenTreeStockItem> { | ||||||
|  |  | ||||||
|   final key = GlobalKey<ScaffoldState>(); |   final stockSearchKey = GlobalKey<ScaffoldState>(); | ||||||
|  |  | ||||||
|   final BuildContext context; |   final BuildContext context; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user