Class OrderCancellingServiceImpl
java.lang.Object
ch.tocco.nice2.optional.debitor.impl.service.OrderCancellingServiceImpl
- All Implemented Interfaces:
OrderCancellingService
-
Constructor Summary
ConstructorsConstructorDescriptionOrderCancellingServiceImpl(VoucherService voucherService, CommandExecutor commandExecutor, OrderValidationService orderValidationService) -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelOrder(Entity order, String comment, @Nullable org.joda.time.LocalDate manualDate) duplicates every voucher for the related debitor and inverts the debit and credit account without the relationship to Debitor_export the date of the new voucher is set to todayvoidcancelOrders(EntityList orders, String comment, @Nullable org.joda.time.LocalDate manualDate) callsOrderCancellingService.cancelOrderfor every entity inordersvoidvoidsetExcludedFields(List<String> contributions) voidsetExcludedRelations(List<String> contributions)
-
Constructor Details
-
OrderCancellingServiceImpl
public OrderCancellingServiceImpl(VoucherService voucherService, CommandExecutor commandExecutor, OrderValidationService orderValidationService)
-
-
Method Details
-
cancelOrders
public void cancelOrders(EntityList orders, String comment, @Nullable @Nullable org.joda.time.LocalDate manualDate) Description copied from interface:OrderCancellingServicecallsOrderCancellingService.cancelOrderfor every entity inorders- Specified by:
cancelOrdersin interfaceOrderCancellingService- Parameters:
orders- entity list to cancel
-
cancelOrder
public void cancelOrder(Entity order, String comment, @Nullable @Nullable org.joda.time.LocalDate manualDate) Description copied from interface:OrderCancellingServiceduplicates every voucher for the related debitor and inverts the debit and credit account without the relationship to Debitor_export the date of the new voucher is set to today- Specified by:
cancelOrderin interfaceOrderCancellingService- Parameters:
order- the order to cancel
-
initializeService
@PostConstruct public void initializeService() -
setExcludedFields
-
setExcludedRelations
-