Class OrderBookingServiceImpl
java.lang.Object
ch.tocco.nice2.optional.debitor.impl.service.OrderBookingServiceImpl
- All Implemented Interfaces:
OrderBookingService
-
Constructor Summary
ConstructorDescriptionOrderBookingServiceImpl
(CommandExecutor executor, BusinessUnitManager businessUnitManager, VoucherService voucherService, DateDelimitedEntityService dateDelimitedEntityService, ActiveVatRateService activeVatRateService, DateDelimitedEntityRelationResolverService dateDelimitedEntityRelationResolverService, TimezoneResolverService timezoneResolverService) -
Method Summary
Modifier and TypeMethodDescriptioncreates a debitor with vouchers and dunning levels for a order also set the billing date and status on orderbookOrders
(EntityList orders) callsOrderBookingService.bookOrder
for every entity inorders
void
setRelationsToSet
(List<OrderBookingRelationsContribution> contributions) void
setValuesToAdd
(List<OrderBookingValuesContribution> contributions)
-
Constructor Details
-
OrderBookingServiceImpl
public OrderBookingServiceImpl(CommandExecutor executor, BusinessUnitManager businessUnitManager, VoucherService voucherService, DateDelimitedEntityService dateDelimitedEntityService, ActiveVatRateService activeVatRateService, DateDelimitedEntityRelationResolverService dateDelimitedEntityRelationResolverService, TimezoneResolverService timezoneResolverService)
-
-
Method Details
-
bookOrders
Description copied from interface:OrderBookingService
callsOrderBookingService.bookOrder
for every entity inorders
- Specified by:
bookOrders
in interfaceOrderBookingService
- Parameters:
orders
- entity list to book- Returns:
- a list of the created debitors
- Throws:
PersistException
-
bookOrder
Description copied from interface:OrderBookingService
creates a debitor with vouchers and dunning levels for a order also set the billing date and status on order- Specified by:
bookOrder
in interfaceOrderBookingService
- Parameters:
order
- the order to book- Returns:
- the created debitor
- Throws:
PersistException
-
setRelationsToSet
-
setValuesToAdd
-