2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-05-02 15:28:53 +00:00

Add more fields for stock item creation

This commit is contained in:
Oliver 2021-08-15 14:53:13 +10:00
parent 3fb6b38930
commit 3e3ab680f6
3 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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":

View File

@ -113,8 +113,11 @@ class InvenTreeStockItem extends InvenTreeModel {
return {
"part": {},
"location": {},
"status": {},
"quantity": {},
"status": {},
"batch": {},
"packaging": {},
"link": {},
};
}