2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-16 12:15:31 +00:00

Add API form support for date fields

This commit is contained in:
Oliver
2021-09-28 01:14:58 +10:00
parent 61a9557df5
commit 68d542cb6b
4 changed files with 44 additions and 0 deletions

View File

@ -223,6 +223,8 @@ class InvenTreeStockItem extends InvenTreeModel {
return pp.isNotEmpty && pp.trim() != "-";
}
int get purchaseOrderId => jsondata['purchase_order'] ?? -1;
int get trackingItemCount => (jsondata['tracking_items'] ?? 0) as int;
// Date of last update