Order post-processing APIs (gillian) are now inactive by default and will throw an exception if accessed. Activation needs preliminary approval by Product Management. Please contact support in this case. Existing customers using these APIs are not affected by this change and can use the APIs until further notice.
The Quantity is equal to the related line item quantity.
The possible values are STATUS_CONFIRMED, STATUS_WAREHOUSE, STATUS_SHIPPED, STATUS_CANCELLED.
This method creates and adds a new tracking reference to this shipping order item for a given tracking info and quantity. The new instance is returned.
Examples:
TaxBasis before | factor | divisor | roundup | Calculation | TaxBasis after |
---|---|---|---|---|---|
$10.00 | 1 | 2 | true | 10*1/2= | $5.00 |
$10.00 | 9 | 10 | true | 10*9/10= | $9.00 |
$10.00 | 1 | 3 | true | 10*1/3=3.3333= | $3.33 |
$2.47 | 1 | 2 | true | 2.47*1/2=1.235= | $1.24 |
$2.47 | 1 | 2 | false | 2.47*1/2=1.235= | $1.23 |
Which prices are updated?:
The rate described above is applied to tax-basis and tax then the net-price and gross-price are recalculated by adding / subtracting
depending on whether the order is based on net price.
Example (order based on net price)
New TaxBasis:$10.00, Tax:$1.00, NetPrice=TaxBasis=$10.00, GrossPrice=TaxBasis+Tax=$11.00
Example (order based on gross price)
New TaxBasis:$10.00, Tax:$1.00, NetPrice=TaxBasis-tax=$9.00, GrossPrice=TaxBasis=$10.00
The Quantity is equal to the related line item quantity.
The possible values are STATUS_CONFIRMED, STATUS_WAREHOUSE, STATUS_SHIPPED, STATUS_CANCELLED.
This also triggers the setting of the status of the LineItem when appropriate. Setting this status can also have an impact on the order status, accessed using Order.getStatus() and the shipping order status, accessed using ShippingOrder.getStatus().
null
This will also lead to a split of the related LineItem. Split means that for the passed quantity a new item is created with this quantity as an exact copy of this item. The remaining amount will stay in this item.
If quantity is equal to getQuantity() no split is done and this item is returned itself.
This method is equivalent to split(Quantity, Boolean) called
with splitOrderItem
equals to true
.
This will also lead to a split of the related LineItem
when splitOrderItem
is true
.
Split means that for the passed quantity a new item is created with this
quantity as an exact copy of this item. The remaining amount will stay in
this item.
If quantity is equal to getQuantity() no split is done and this item is returned itself.