mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Display stock item status
This commit is contained in:
parent
dbc2a7b12b
commit
ce2a866384
5 changed files with 59 additions and 7 deletions
|
|
@ -99,6 +99,7 @@ class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
|
|||
child: ListTile(
|
||||
title: Text(I18N.of(context).stockLocations),
|
||||
subtitle: Text(I18N.of(context).stockTopLevel),
|
||||
leading: FaIcon(FontAwesomeIcons.levelUpAlt),
|
||||
)
|
||||
);
|
||||
} else {
|
||||
|
|
@ -112,6 +113,7 @@ class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
|
|||
ListTile(
|
||||
title: Text("Parent Category"),
|
||||
subtitle: Text("${location.parentpathstring}"),
|
||||
leading: FaIcon(FontAwesomeIcons.levelUpAlt),
|
||||
onTap: () {
|
||||
if (location.parentId < 0) {
|
||||
Navigator.push(context, MaterialPageRoute(builder: (context) => LocationDisplayWidget(null)));
|
||||
|
|
|
|||
|
|
@ -303,7 +303,13 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
|||
title: Text("${item.partName}"),
|
||||
subtitle: Text("${item.partDescription}"),
|
||||
leading: InvenTreeAPI().getImage(item.partImage),
|
||||
trailing: Text(item.serialOrQuantityDisplay()),
|
||||
trailing: Text(
|
||||
item.statusLabel(context),
|
||||
style: TextStyle(
|
||||
color: item.statusColor
|
||||
)
|
||||
),
|
||||
//trailing: Text(item.serialOrQuantityDisplay()),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue