public interface SubOrderService<O extends SubOrder<O,I>,I extends OrderItem> extends RelatedOrderService<O,I>
SubOrder
Modifier and Type | Method and Description |
---|---|
O |
deriveFirst(O order)
|
List<O> |
deriveSequence(Order o)
Get the sequence of Orders; with Root always as first element.
|
O |
ensureSubOrdersChainedInSequence(O nextNew)
Uses
ensureSubOrdersChainedInSequence(SubOrder) to ensure all relations are linked |
Stack<Amount> |
getAllPartialAmounts(O order,
boolean considerOnlyRealizedOrders)
For all Orders placed related to this order, return in sequence all the partial amounts, so far.<
|
SequenceSubOrderTransformer<O> |
getSequenceSubOrderTransformer() |
boolean |
hasAnyDirectRelatedOrders(Order order)
A light methods to check if the Order related to any SubOrder(s).
Basically check if the Order exits by itself or has SubOrder relations with it. |
void |
setSequenceSubOrderTransformer(SequenceSubOrderTransformer<O> sequenceSubOrderTransformer) |
adjustInventory, checkItemProductsStillLocked, getDao, isExists, load, lockProductsForOrder, save, save, unlockProductsForOrder, update
addChangeListener, getListeners, notifyAllListeners, setListeners
O ensureSubOrdersChainedInSequence(O nextNew)
ensureSubOrdersChainedInSequence(SubOrder)
to ensure all relations are linkednextNew
- as O of type SubOrder
Stack<Amount> getAllPartialAmounts(O order, boolean considerOnlyRealizedOrders)
SequenceSubOrderTransformer<O> getSequenceSubOrderTransformer()
#autoCalcPartialAmountForNextSuborder(SubOrder)
void setSequenceSubOrderTransformer(SequenceSubOrderTransformer<O> sequenceSubOrderTransformer)
#autoCalcPartialAmountForNextSuborder(SubOrder)
List<O> deriveSequence(Order o)
o
- as SubOrder
Copyright © 2018. All rights reserved.