mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-31 13:25:40 +00:00 
			
		
		
		
	Supplier part fix (#408)
* Change supplier part fields based on API version * Display packaging info on supplier part page * Icon consolidation * Bump version number
This commit is contained in:
		| @@ -636,7 +636,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> { | ||||
|         ListTile( | ||||
|           title: Text(L10().packaging), | ||||
|           subtitle: Text(widget.item.packaging), | ||||
|           leading: FaIcon(FontAwesomeIcons.box), | ||||
|           leading: FaIcon(FontAwesomeIcons.boxesPacking), | ||||
|         ) | ||||
|       ); | ||||
|     } | ||||
|   | ||||
| @@ -192,6 +192,18 @@ class _SupplierPartDisplayState extends RefreshableState<SupplierPartDetailWidge | ||||
|       ); | ||||
|     } | ||||
|  | ||||
|     // Packaging | ||||
|     if (widget.supplierPart.packaging.isNotEmpty || widget.supplierPart.pack_quantity.isNotEmpty) { | ||||
|       tiles.add( | ||||
|         ListTile( | ||||
|           title: Text(L10().packaging), | ||||
|           subtitle: widget.supplierPart.packaging.isNotEmpty ? Text(widget.supplierPart.packaging) : null, | ||||
|           leading: FaIcon(FontAwesomeIcons.boxesPacking), | ||||
|           trailing: widget.supplierPart.pack_quantity.isNotEmpty ? Text(widget.supplierPart.pack_quantity) : null, | ||||
|         ) | ||||
|       ); | ||||
|     } | ||||
|  | ||||
|     if (widget.supplierPart.link.isNotEmpty) { | ||||
|       tiles.add( | ||||
|         ListTile( | ||||
|   | ||||
		Reference in New Issue
	
	Block a user