diff --git a/lib/inventree/stock.dart b/lib/inventree/stock.dart index c0b54b9c..2147bd05 100644 --- a/lib/inventree/stock.dart +++ b/lib/inventree/stock.dart @@ -221,8 +221,8 @@ class InvenTreeStockItem extends InvenTreeModel { int get status => jsondata['status'] ?? -1; int get partId => jsondata['part'] ?? -1; - - String get purchasePrice => jsondata['purchase_price']; + + String get purchasePrice => jsondata['purchase_price'] ?? ""; bool get hasPurchasePrice {