mirror of
https://github.com/inventree/inventree-app.git
synced 2025-05-01 06:56:50 +00:00
display stock item packaging
This commit is contained in:
parent
baa3d3a1bb
commit
87864d2f07
@ -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;
|
||||
|
2
lib/l10n
2
lib/l10n
@ -1 +1 @@
|
||||
Subproject commit 1e1e4f9b2494121098d2862f65e995ef8e420b8b
|
||||
Subproject commit 925abac9acce5a2abffd6f311ee2a4617710e0a3
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user