Display either serial number or quantity depending on stock properties

This commit is contained in:
Oliver Walters committed 2020-04-08 12:18:50 +10:00
1 parent 5382ded50c
commit 04b09b5591
2 files changed
+21 -7

No files matched your search

+2
View File
@@ -121,6 +121,8 @@ class InvenTreeStockItem extends InvenTreeModel {
int get locationId => jsondata['location'] as int ?? -1;
bool isSerialized() => serialNumber != null && quantity.toInt() == 1;
String get locationName {
String loc = '';