2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 18:25:26 +00:00
- Add "last update date" to StockDetail view
- Add 'stocktake date" to StockDetail view
This commit is contained in:
Oliver
2021-07-20 19:32:48 +10:00
parent f425391301
commit c99be189bb
3 changed files with 62 additions and 10 deletions

View File

@ -418,7 +418,32 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
);
}
// Last update?
var update_date = item.updatedDateString;
if (update_date != null) {
tiles.add(
ListTile(
title: Text(L10().lastUpdated),
subtitle: Text(update_date),
leading: FaIcon(FontAwesomeIcons.calendarAlt)
)
);
}
// Stocktake?
var stocktake_date = item.stocktakeDateString;
if (stocktake_date != null) {
tiles.add(
ListTile(
title: Text(L10().lastStocktake),
subtitle: Text(stocktake_date),
leading: FaIcon(FontAwesomeIcons.calendarAlt)
)
);
}
// Supplier part?
// TODO: Display supplier part info page?