2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-16 04:05:28 +00:00

Long sn fix (#499)

* Improve tasks.py

- Works from any subdir now

* Update stock detail display

* FIx width of "serial" column in stock item list
This commit is contained in:
Oliver
2024-06-03 21:50:24 +10:00
committed by GitHub
parent 7575ba0136
commit 715cd06946
3 changed files with 19 additions and 10 deletions

View File

@ -133,14 +133,17 @@ class _PaginatedStockItemListState extends PaginatedSearchState<PaginatedStockIt
return ListTile(
title: Text("${item.partName}"),
subtitle: Text("${item.locationPathString}"),
subtitle: Text(item.locationPathString),
leading: InvenTreeAPI().getThumbnail(item.partThumbnail),
trailing: Text("${item.displayQuantity}",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 16,
color: InvenTreeAPI().StockStatus.color(item.status),
),
trailing: SizedBox(
width: 48,
child: Text("${item.displayQuantity}",
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: 14,
color: InvenTreeAPI().StockStatus.color(item.status),
),
)
),
onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (context) => StockDetailWidget(item)));