2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-17 04:35:26 +00:00

Show if stock item is "in production"

This commit is contained in:
Oliver Walters
2022-03-26 18:58:59 +11:00
parent 0b3e716827
commit fd8fc9051a
3 changed files with 17 additions and 2 deletions

View File

@ -230,6 +230,8 @@ class InvenTreeStockItem extends InvenTreeModel {
int get trackingItemCount => (jsondata["tracking_items"] ?? 0) as int;
bool get isBuilding => (jsondata["is_building"] ?? false) as bool;
// Date of last update
DateTime? get updatedDate {
if (jsondata.containsKey("updated")) {