mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 13:36:50 +00:00
Fix issue with non integer serial number display
This commit is contained in:
parent
392493e004
commit
4445973548
@ -272,7 +272,7 @@ class InvenTreeStockItem extends InvenTreeModel {
|
|||||||
return sku;
|
return sku;
|
||||||
}
|
}
|
||||||
|
|
||||||
int get serialNumber => jsondata['serial'] as int ?? null;
|
String get serialNumber => jsondata['serial'] as String ?? null;
|
||||||
|
|
||||||
double get quantity => double.tryParse(jsondata['quantity'].toString() ?? '0');
|
double get quantity => double.tryParse(jsondata['quantity'].toString() ?? '0');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user