2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-16 20:25:26 +00:00

Handle form posting with complex "layered" data

- Handle data rendering
- Handle returned errors
This commit is contained in:
Oliver
2021-10-03 00:40:26 +10:00
parent 80b203ce7b
commit b7f9f1c55f
3 changed files with 88 additions and 17 deletions

View File

@ -85,6 +85,8 @@ class InvenTreePurchaseOrder extends InvenTreeModel {
bool get isOpen => status == PO_STATUS_PENDING || status == PO_STATUS_PLACED;
bool get isPlaced => status == PO_STATUS_PLACED;
bool get isFailed => status == PO_STATUS_CANCELLED || status == PO_STATUS_LOST || status == PO_STATUS_RETURNED;
Future<List<InvenTreePOLineItem>> getLineItems() async {