2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-05-01 15:06:49 +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; int get status => jsondata['status'] ?? -1;
String get packaging => jsondata["packaging"] ?? "";
String get batch => jsondata["batch"] ?? ""; String get batch => jsondata["batch"] ?? "";
int get partId => jsondata['part'] ?? -1; int get partId => jsondata['part'] ?? -1;

@ -1 +1 @@
Subproject commit 1e1e4f9b2494121098d2862f65e995ef8e420b8b Subproject commit 925abac9acce5a2abffd6f311ee2a4617710e0a3

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? // Last update?
var update_date = item.updatedDateString; var update_date = item.updatedDateString;