mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-30 21:05:42 +00:00 
			
		
		
		
	This commit is contained in:
		| @@ -189,11 +189,6 @@ class BarcodeScanHandler extends BarcodeHandler { | |||||||
|    */ |    */ | ||||||
|   Future<void> handlePart(int pk) async { |   Future<void> handlePart(int pk) async { | ||||||
|     InvenTreePart().get(pk).then((var part) { |     InvenTreePart().get(pk).then((var part) { | ||||||
|       showSnackIcon( |  | ||||||
|         L10().part, |  | ||||||
|         success: true, |  | ||||||
|         icon: Icons.qr_code, |  | ||||||
|       ); |  | ||||||
|       // Dismiss the barcode scanner |       // Dismiss the barcode scanner | ||||||
|       OneContext().pop(); |       OneContext().pop(); | ||||||
|  |  | ||||||
| @@ -208,11 +203,6 @@ class BarcodeScanHandler extends BarcodeHandler { | |||||||
|    */ |    */ | ||||||
|   Future<void> handleStockItem(int pk) async { |   Future<void> handleStockItem(int pk) async { | ||||||
|     InvenTreeStockItem().get(pk).then((var item) { |     InvenTreeStockItem().get(pk).then((var item) { | ||||||
|       showSnackIcon( |  | ||||||
|         L10().stockItem, |  | ||||||
|         success: true, |  | ||||||
|         icon: Icons.qr_code, |  | ||||||
|       ); |  | ||||||
|       OneContext().pop(); |       OneContext().pop(); | ||||||
|       if (item is InvenTreeStockItem) { |       if (item is InvenTreeStockItem) { | ||||||
|         OneContext().push(MaterialPageRoute( |         OneContext().push(MaterialPageRoute( | ||||||
| @@ -227,11 +217,6 @@ class BarcodeScanHandler extends BarcodeHandler { | |||||||
|   Future<void> handleStockLocation(int pk) async { |   Future<void> handleStockLocation(int pk) async { | ||||||
|     InvenTreeStockLocation().get(pk).then((var loc) { |     InvenTreeStockLocation().get(pk).then((var loc) { | ||||||
|       if (loc is InvenTreeStockLocation) { |       if (loc is InvenTreeStockLocation) { | ||||||
|         showSnackIcon( |  | ||||||
|           L10().stockLocation, |  | ||||||
|           success: true, |  | ||||||
|           icon: Icons.qr_code, |  | ||||||
|         ); |  | ||||||
|         OneContext().pop(); |         OneContext().pop(); | ||||||
|         OneContext().navigator.push(MaterialPageRoute( |         OneContext().navigator.push(MaterialPageRoute( | ||||||
|             builder: (context) => LocationDisplayWidget(loc))); |             builder: (context) => LocationDisplayWidget(loc))); | ||||||
| @@ -244,12 +229,6 @@ class BarcodeScanHandler extends BarcodeHandler { | |||||||
|    */ |    */ | ||||||
|   Future<void> handleSupplierPart(int pk) async { |   Future<void> handleSupplierPart(int pk) async { | ||||||
|     InvenTreeSupplierPart().get(pk).then((var supplierpart) { |     InvenTreeSupplierPart().get(pk).then((var supplierpart) { | ||||||
|       showSnackIcon( |  | ||||||
|         L10().supplierPart, |  | ||||||
|         success: true, |  | ||||||
|         icon: Icons.qr_code, |  | ||||||
|       ); |  | ||||||
|  |  | ||||||
|       OneContext().pop(); |       OneContext().pop(); | ||||||
|  |  | ||||||
|       if (supplierpart is InvenTreeSupplierPart) { |       if (supplierpart is InvenTreeSupplierPart) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user