mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-17 04:35:26 +00:00
Add "QuantityField"
Juicy juicy refactoring
This commit is contained in:
@ -142,6 +142,16 @@ class InvenTreeStockItem extends InvenTreeModel {
|
||||
return loc;
|
||||
}
|
||||
|
||||
String get locationPathString {
|
||||
String path = '';
|
||||
|
||||
if (jsondata.containsKey('location_detail')) {
|
||||
path = jsondata['location_detail']['pathstring'] ?? '';
|
||||
}
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
String get displayQuantity {
|
||||
// Display either quantity or serial number!
|
||||
|
||||
|
Reference in New Issue
Block a user