mirror of
https://github.com/inventree/inventree-app.git
synced 2025-05-02 07:26:50 +00:00
Improve display of StockList tiles
This commit is contained in:
parent
7e55dbb260
commit
6b226fafc9
@ -415,7 +415,13 @@ class InvenTreeStockItem extends InvenTreeModel {
|
||||
|
||||
if (locationId == -1 || !jsondata.containsKey('location_detail')) return L10().locationNotSet;
|
||||
|
||||
return jsondata['location_detail']['pathstring'] ?? '';
|
||||
String _loc = jsondata['location_detail']['pathstring'] ?? '';
|
||||
|
||||
if (_loc.isNotEmpty) {
|
||||
return _loc;
|
||||
} else {
|
||||
return locationName;
|
||||
}
|
||||
}
|
||||
|
||||
String get displayQuantity {
|
||||
|
@ -517,7 +517,7 @@ class _PaginatedStockListState extends State<PaginatedStockList> {
|
||||
Widget _buildItem(BuildContext context, InvenTreeStockItem item) {
|
||||
return ListTile(
|
||||
title: Text("${item.partName}"),
|
||||
subtitle: Text("${item.partDescription}"),
|
||||
subtitle: Text("${item.locationPathString}"),
|
||||
leading: InvenTreeAPI().getImage(
|
||||
item.partThumbnail,
|
||||
width: 40,
|
||||
|
Loading…
x
Reference in New Issue
Block a user