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:
@ -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
Submodule lib/l10n updated: 1e1e4f9b24...925abac9ac
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user