mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26:24 +00:00
Order hold (#515)
* Add support for "ON_HOLD" status for orders * Bump version and release notes * Fix import
This commit is contained in:
parent
693b4a4fce
commit
42de3fd7d4
6 changed files with 92 additions and 9 deletions
|
|
@ -87,9 +87,9 @@ class InvenTreePurchaseOrder extends InvenTreeOrder {
|
|||
|
||||
String get supplierReference => getString("supplier_reference");
|
||||
|
||||
bool get isOpen => api.PurchaseOrderStatus.isNameIn(status, ["PENDING", "PLACED"]);
|
||||
bool get isOpen => api.PurchaseOrderStatus.isNameIn(status, ["PENDING", "PLACED", "ON_HOLD"]);
|
||||
|
||||
bool get isPending => api.PurchaseOrderStatus.isNameIn(status, ["PENDING"]);
|
||||
bool get isPending => api.PurchaseOrderStatus.isNameIn(status, ["PENDING", "ON_HOLD"]);
|
||||
|
||||
bool get isPlaced => api.PurchaseOrderStatus.isNameIn(status, ["PLACED"]);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue