2
0
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:
Oliver Walters
2020-04-18 22:07:02 +10:00
parent 51a877e8d7
commit a7d11faec8
8 changed files with 102 additions and 67 deletions

View File

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