mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-13 10:45:29 +00:00
Display either serial number or quantity depending on stock properties
This commit is contained in:
@ -74,13 +74,25 @@ class _StockItemDisplayState extends State<StockDetailWidget> {
|
||||
);
|
||||
|
||||
// Quantity information
|
||||
tiles.add(
|
||||
ListTile(
|
||||
title: Text("Quantity"),
|
||||
leading: FaIcon(FontAwesomeIcons.cubes),
|
||||
trailing: Text("${item.quantity}"),
|
||||
)
|
||||
);
|
||||
if (item.isSerialized()) {
|
||||
tiles.add(
|
||||
ListTile(
|
||||
title: Text("Serial Number"),
|
||||
leading: FaIcon(FontAwesomeIcons.hashtag),
|
||||
trailing: Text("${item.serialNumber}"),
|
||||
)
|
||||
);
|
||||
} else {
|
||||
tiles.add(
|
||||
ListTile(
|
||||
title: Text("Quantity"),
|
||||
leading: FaIcon(FontAwesomeIcons.cubes),
|
||||
trailing: Text("${item.quantity}"),
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Location information
|
||||
if (item.locationName.isNotEmpty) {
|
||||
|
Reference in New Issue
Block a user