From 444597354836a7a6dfd4c0320d92a01cef156519 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 21 Jan 2021 00:01:59 +1100 Subject: [PATCH] Fix issue with non integer serial number display --- lib/inventree/stock.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/inventree/stock.dart b/lib/inventree/stock.dart index d60442af..56602ccd 100644 --- a/lib/inventree/stock.dart +++ b/lib/inventree/stock.dart @@ -272,7 +272,7 @@ class InvenTreeStockItem extends InvenTreeModel { 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');