From 3e3ab680f6ee07bebc3c2f5ac08a692611fc7398 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 15 Aug 2021 14:53:13 +1000 Subject: [PATCH] Add more fields for stock item creation --- assets/release_notes.md | 1 + lib/api_form.dart | 2 +- lib/inventree/stock.dart | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/release_notes.md b/assets/release_notes.md index 6e493724..827b32ca 100644 --- a/assets/release_notes.md +++ b/assets/release_notes.md @@ -7,6 +7,7 @@ - Add ability to create new Part Categories - Add ability to create new Parts - Add ability to create new Stock Locations +- Add ability to create new Stock Items - App bar now always displays "back" button - Display "batch code" information for stock item - Display "packaging" information for stock item diff --git a/lib/api_form.dart b/lib/api_form.dart index 624c6e7d..29ce5669 100644 --- a/lib/api_form.dart +++ b/lib/api_form.dart @@ -340,7 +340,7 @@ class APIFormField { part.description, style: TextStyle(fontWeight: selected ? FontWeight.bold : FontWeight.normal), ) : null, - leading: extended ? InvenTreeAPI().getImage(part.thumbnail, width: 32, height: 32) : null, + leading: extended ? InvenTreeAPI().getImage(part.thumbnail, width: 40, height: 40) : null, ); case "partcategory": diff --git a/lib/inventree/stock.dart b/lib/inventree/stock.dart index f1dd773d..ac03a1fa 100644 --- a/lib/inventree/stock.dart +++ b/lib/inventree/stock.dart @@ -113,8 +113,11 @@ class InvenTreeStockItem extends InvenTreeModel { return { "part": {}, "location": {}, - "status": {}, "quantity": {}, + "status": {}, + "batch": {}, + "packaging": {}, + "link": {}, }; }