2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-15 11:45:31 +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

@ -467,7 +467,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
title: Text("${widget.item.partName}"),
subtitle: Text("${widget.item.partDescription}"),
leading: InvenTreeAPI().getThumbnail(widget.item.partImage),
trailing: Text(
trailing: widget.item.isSerialized() ? null : Text(
widget.item.quantityString(),
style: TextStyle(
fontSize: 20,
@ -548,7 +548,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
ListTile(
title: Text(L10().serialNumber),
leading: FaIcon(FontAwesomeIcons.hashtag),
trailing: Text("${widget.item.serialNumber}"),
subtitle: Text("${widget.item.serialNumber}"),
)
);
} else {