mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-31 05:15:42 +00:00 
			
		
		
		
	Stuff?
This commit is contained in:
		| @@ -38,11 +38,12 @@ android { | |||||||
|     defaultConfig { |     defaultConfig { | ||||||
|         // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). |         // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). | ||||||
|         applicationId "inventree.inventree_app" |         applicationId "inventree.inventree_app" | ||||||
|         minSdkVersion 16 |         minSdkVersion 20 | ||||||
|         targetSdkVersion 28 |         targetSdkVersion 29 | ||||||
|         versionCode flutterVersionCode.toInteger() |         versionCode flutterVersionCode.toInteger() | ||||||
|         versionName flutterVersionName |         versionName flutterVersionName | ||||||
|         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||||||
|  |         multiDexEnabled true | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     buildTypes { |     buildTypes { | ||||||
|   | |||||||
| @@ -25,6 +25,18 @@ class InvenTreeStockItem extends InvenTreeModel { | |||||||
|     return headers; |     return headers; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|  |   @override | ||||||
|  |   Map<String, String> defaultListFilters() { | ||||||
|  |  | ||||||
|  |     var headers = new Map<String, String>(); | ||||||
|  |  | ||||||
|  |     headers["part_detail"] = "true"; | ||||||
|  |     headers["location_detail"] = "true"; | ||||||
|  |     headers["supplier_detail"] = "true"; | ||||||
|  |  | ||||||
|  |     return headers; | ||||||
|  |   } | ||||||
|  |  | ||||||
|   InvenTreeStockItem() : super(); |   InvenTreeStockItem() : super(); | ||||||
|  |  | ||||||
|   InvenTreeStockItem.fromJson(Map<String, dynamic> json) : super.fromJson(json) { |   InvenTreeStockItem.fromJson(Map<String, dynamic> json) : super.fromJson(json) { | ||||||
| @@ -44,10 +56,6 @@ class InvenTreeStockItem extends InvenTreeModel { | |||||||
|       nm = jsondata['part_detail']['full_name'] ?? ''; |       nm = jsondata['part_detail']['full_name'] ?? ''; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     if (nm.isEmpty) { |  | ||||||
|       nm = jsondata['part__name'] ?? ''; |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     return nm; |     return nm; | ||||||
|   } |   } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user