mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-16 12:15:31 +00:00
Set default location for part
- Used as "default" when creating new StockItem for that part
This commit is contained in:
@ -139,9 +139,9 @@ class InvenTreePart extends InvenTreeModel {
|
||||
"keywords": {},
|
||||
"link": {},
|
||||
|
||||
// Parent category
|
||||
"category": {
|
||||
},
|
||||
"category": {},
|
||||
|
||||
"default_location": {},
|
||||
|
||||
"units": {},
|
||||
|
||||
@ -242,6 +242,8 @@ class InvenTreePart extends InvenTreeModel {
|
||||
});
|
||||
}
|
||||
|
||||
int? get defaultLocation => jsondata["default_location"] as int?;
|
||||
|
||||
// Get the number of stock on order for this Part
|
||||
double get onOrder => double.tryParse(jsondata["ordering"].toString()) ?? 0;
|
||||
|
||||
|
Reference in New Issue
Block a user