- CONFIRMED - shipping order not yet exported, with 0 items, or all items in status CONFIRMED.
- WAREHOUSE - shipping order exported, with all items in status WAREHOUSE.
- SHIPPED - exported shipping order has been updated, with 1-n items in status SHIPPED and 0-n CANCELLED.
- CANCELLED - exported shipping order has been updated, with all items in status CANCELLED.
The following status transitions are supported. Every status transition is documented by the addition of an order note such as 'Shipping order 123456 status changed to WAREHOUSE.':
From | To | When | Use |
---|---|---|---|
CONFIRMED | WAREHOUSE | Shipping order exported | Call setStatusWarehouse() - note this is the only way to set the items to status WAREHOUSE |
WAREHOUSE | SHIPPED | One or more items have been SHIPPED | Call ShippingOrderItem.setStatus(String) using ShippingOrderItem.STATUS_SHIPPED |
WAREHOUSE | CANCELLED | All items have been CANCELLED | Call ShippingOrderItem.setStatus(String) using ShippingOrderItem.STATUS_CANCELLED |
null
or the invoice-number.null
if this shipping order is not yet shipped.null
.The possible values are STATUS_CONFIRMED, STATUS_WAREHOUSE, STATUS_SHIPPED, STATUS_CANCELLED.
shippingOrderNumber
.shippingOrderNumber
.null
or the invoice-number.Note - this method is the only way to transition a shipping order from CONFIRMED to WAREHOUSE.
shippingOrderNumber
.
The quantity of the new item can be optionally specified. A quantity of
null
indicates the new item should be based on the entire order item and
is recommended for ShippingLineItems. If a quantity is
specified for a ProductLineItem which is less than
ProductLineItem.getQuantity() the
ProductLineItem will be split, creating a new
ProductLineItem. The new
ShippingOrderItem will be associated with the new
ProductLineItem, which will receive the specified
quantity.
See also createShippingOrderItem(OrderItem, Quantity, Boolean).
shippingOrderNumber
.
The quantity of the new item can be optionally specified. A quantity of
null
indicates the new item should be based on the entire order item and
is recommended for ShippingLineItems.
If the specified quantity is less than ProductLineItem.getQuantity() the
ProductLineItem will be split or not depending on splitIfPartial
parameter.
When split
is true
, the method is equivalent to
createShippingOrderItem(OrderItem, Quantity).
null
or the invoice-number.null
or the previously created invoice number.
null
if this shipping order is not yet shipped.null
null
null
.null
The possible values are STATUS_CONFIRMED, STATUS_WAREHOUSE, STATUS_SHIPPED, STATUS_CANCELLED.
null
Note - this method is the only way to transition a shipping order from CONFIRMED to WAREHOUSE.