mirror of
https://github.com/inventree/inventree-app.git
synced 2025-06-14 19:25:27 +00:00
Catch null purchase_price
This commit is contained in:
@ -221,8 +221,8 @@ class InvenTreeStockItem extends InvenTreeModel {
|
|||||||
int get status => jsondata['status'] ?? -1;
|
int get status => jsondata['status'] ?? -1;
|
||||||
|
|
||||||
int get partId => jsondata['part'] ?? -1;
|
int get partId => jsondata['part'] ?? -1;
|
||||||
|
|
||||||
String get purchasePrice => jsondata['purchase_price'];
|
String get purchasePrice => jsondata['purchase_price'] ?? "";
|
||||||
|
|
||||||
bool get hasPurchasePrice {
|
bool get hasPurchasePrice {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user