mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-31 13:25:40 +00:00 
			
		
		
		
	Modern attachments (#505)
* Minimum API version is now 100 * Remove old API features - Anything below API v100 no longer supported * Reefactor attachment widget to support modern attachment API * Filter and display attachments correctly * Refactor
This commit is contained in:
		| @@ -341,12 +341,7 @@ class UniqueBarcodeHandler extends BarcodeHandler { | ||||
|     } else { | ||||
|       String barcode; | ||||
|  | ||||
|       if (InvenTreeAPI().supportModernBarcodes) { | ||||
|         barcode = (data["barcode_data"] ?? "") as String; | ||||
|       } else { | ||||
|         // Legacy barcode API | ||||
|         barcode = (data["hash"] ?? data["barcode_hash"] ?? "") as String; | ||||
|       } | ||||
|       barcode = (data["barcode_data"] ?? "") as String; | ||||
|  | ||||
|       if (barcode.isEmpty) { | ||||
|         barcodeFailureTone(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user