Class SplitOrderTask
java.lang.Object
ch.tocco.nice2.optional.order.api.action.invoice.tasks.AbstractOrderGeneratorTask
ch.tocco.nice2.optional.eventorder.impl.invoice.SplitOrderTask
- All Implemented Interfaces:
OrderGeneratorTask
,PersistTask<Tuple3<Entity,
InvoicePropertiesContribution, Collection<OrderGeneratorBean>>, Tuple3<Entity, InvoicePropertiesContribution, Collection<OrderGeneratorBean>>>
if the source entity is a registration, has a percentage and a split user or address set, this task creates
a second order, and split the price of all order positions up
relates the new order with the source registration and the parent order
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run
(CommandContext commandContext, Entity settings, InvoicePropertiesContribution properties, Collection<OrderGeneratorBean> beans) Methods inherited from class ch.tocco.nice2.optional.order.api.action.invoice.tasks.AbstractOrderGeneratorTask
run
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
SplitOrderTask
public SplitOrderTask()
-
-
Method Details
-
run
public void run(CommandContext commandContext, Entity settings, InvoicePropertiesContribution properties, Collection<OrderGeneratorBean> beans)
-