2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-15 03:35:28 +00:00

display stock item packaging

This commit is contained in:
Oliver Walters
2021-08-10 00:12:41 +10:00
parent baa3d3a1bb
commit 87864d2f07
3 changed files with 13 additions and 1 deletions

View File

@ -220,6 +220,8 @@ class InvenTreeStockItem extends InvenTreeModel {
int get status => jsondata['status'] ?? -1;
String get packaging => jsondata["packaging"] ?? "";
String get batch => jsondata["batch"] ?? "";
int get partId => jsondata['part'] ?? -1;

View File

@ -468,6 +468,16 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
);
}
if (item.packaging.isNotEmpty) {
tiles.add(
ListTile(
title: Text(L10().packaging),
subtitle: Text(item.packaging),
leading: FaIcon(FontAwesomeIcons.box),
)
);
}
// Last update?
var update_date = item.updatedDateString;