2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 10:45:29 +00:00

Update stock display to indicate allocations

This commit is contained in:
Oliver Walters
2022-07-05 18:38:28 +10:00
parent 62df40f4b3
commit 591c6a5592
3 changed files with 20 additions and 4 deletions

View File

@ -513,7 +513,7 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
} else {
tiles.add(
ListTile(
title: Text(L10().quantity),
title: item.allocated > 0 ? Text(L10().quantityAvailable) : Text(L10().quantity),
leading: FaIcon(FontAwesomeIcons.cubes),
trailing: Text("${item.quantityString()}"),
)