mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Catch null purchase_price
This commit is contained in:
parent
293750dce7
commit
ca73ff0d35
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue