mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-12 02:05:29 +00:00
Display "batch code" for stock item
This commit is contained in:
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -1,3 +1,3 @@
|
||||
[submodule "lib/l10n"]
|
||||
path = lib/l10n
|
||||
url = https://github.com/inventree/inventree-app-i18n
|
||||
url = git@github.com:SchrodingersGat/inventreeapp.git
|
||||
|
@ -220,6 +220,8 @@ class InvenTreeStockItem extends InvenTreeModel {
|
||||
|
||||
int get status => jsondata['status'] ?? -1;
|
||||
|
||||
String get batch => jsondata["batch"] ?? "";
|
||||
|
||||
int get partId => jsondata['part'] ?? -1;
|
||||
|
||||
String get purchasePrice => jsondata['purchase_price'] ?? "";
|
||||
|
2
lib/l10n
2
lib/l10n
Submodule lib/l10n updated: c19a9d9af4...1e1e4f9b24
@ -458,6 +458,16 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
|
||||
);
|
||||
}
|
||||
|
||||
if (item.batch.isNotEmpty) {
|
||||
tiles.add(
|
||||
ListTile(
|
||||
title: Text(L10().batchCode),
|
||||
subtitle: Text(item.batch),
|
||||
leading: FaIcon(FontAwesomeIcons.layerGroup),
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// Last update?
|
||||
var update_date = item.updatedDateString;
|
||||
|
||||
|
Reference in New Issue
Block a user