2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-14 03:05:32 +00:00

Merge branch 'master' into api-forms

This commit is contained in:
Oliver
2021-07-22 17:00:13 +10:00
7 changed files with 80 additions and 15 deletions

View File

@ -517,7 +517,7 @@ class _PaginatedStockListState extends State<PaginatedStockList> {
Widget _buildItem(BuildContext context, InvenTreeStockItem item) {
return ListTile(
title: Text("${item.partName}"),
subtitle: Text("${item.partDescription}"),
subtitle: Text("${item.locationPathString}"),
leading: InvenTreeAPI().getImage(
item.partThumbnail,
width: 40,

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?