Fixes for double.tryParse

This commit is contained in:
Oliver 2021-07-13 00:17:35 +10:00
parent 40613c9c36
commit f058cefad2
3 changed files with 5 additions and 6 deletions

View file

@ -344,7 +344,7 @@ class InvenTreeStockItem extends InvenTreeModel {
String get serialNumber => jsondata['serial'] ?? "";
double get quantity => double.tryParse(jsondata['quantity']) ?? 0;
double get quantity => double.tryParse(jsondata['quantity'].toString()) ?? 0;
String get quantityString {