Class CreateOrderPositionsTask
java.lang.Object
ch.tocco.nice2.optional.order.api.action.invoice.tasks.AbstractOrderGeneratorTask
ch.tocco.nice2.optional.order.spi.action.invoice.tasks.CreateOrderPositionsTask
- All Implemented Interfaces:
OrderGeneratorTask
,PersistTask<Tuple3<Entity,
InvoicePropertiesContribution, Collection<OrderGeneratorBean>>, Tuple3<Entity, InvoicePropertiesContribution, Collection<OrderGeneratorBean>>>
task for OrderGenerator that create Order_position entities for Billing_position and Payment_schedule_billing_position entities
sets the invoiced_date on invoiced Billing_position entities
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Entity
createOrderPosition
(Context context, OrderGeneratorBean bean, Entity order, Entity invoiceSource, Entity billingPosition, String pathToOrderPosition) protected void
createOrderPositionsForBillingPositions
(Context context, OrderGeneratorBean bean, Entity order, Entity invoiceSource, String pathToOrderPosition) protected void
finalizeOrderPosition
(OrderGeneratorBean bean, Entity orderPosition, Entity billingPosition, Entity order, Entity invoiceSource, String pathToOrderPosition) protected Collection
<Entity> protected String
getPathToOrderPosition
(InvoicePropertiesContribution properties) void
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
-
Field Details
-
orderPositionService
-
-
Constructor Details
-
CreateOrderPositionsTask
-
-
Method Details
-
run
public void run(CommandContext commandContext, Entity settings, InvoicePropertiesContribution properties, Collection<OrderGeneratorBean> beans) throws InterruptedException - Throws:
InterruptedException
-
createOrderPositionsForBillingPositions
protected void createOrderPositionsForBillingPositions(Context context, OrderGeneratorBean bean, Entity order, Entity invoiceSource, String pathToOrderPosition) throws InterruptedException - Throws:
InterruptedException
-
createOrderPosition
-
finalizeOrderPosition
-
getBillingPositions
-
getPathToOrderPosition
-