2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-29 22:16:47 +00:00

Catch null purchase_price

This commit is contained in:
Oliver 2021-08-05 08:20:28 +10:00
parent 293750dce7
commit ca73ff0d35

View File

@ -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 {