Improve display of StockList tiles

This commit is contained in:
Oliver 2021-07-20 19:36:19 +10:00
parent 7e55dbb260
commit 6b226fafc9
2 changed files with 8 additions and 2 deletions

View file

@ -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 {