mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Add "QuantityField"
Juicy juicy refactoring
This commit is contained in:
parent
51a877e8d7
commit
a7d11faec8
8 changed files with 102 additions and 67 deletions
|
|
@ -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!
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue