Class OrderCancellingServiceImpl
java.lang.Object
ch.tocco.nice2.optional.debitor.impl.service.OrderCancellingServiceImpl
- All Implemented Interfaces:
OrderCancellingService
-
Constructor Summary
ConstructorDescriptionOrderCancellingServiceImpl
(VoucherService voucherService, CommandExecutor commandExecutor, OrderValidationService orderValidationService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelOrder
(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 todayvoid
cancelOrders
(EntityList orders, String comment, @Nullable org.joda.time.LocalDate manualDate) callsOrderCancellingService.cancelOrder
for every entity inorders
void
void
setExcludedFields
(List<String> contributions) void
setExcludedRelations
(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:OrderCancellingService
callsOrderCancellingService.cancelOrder
for every entity inorders
- Specified by:
cancelOrders
in 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:OrderCancellingService
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 today- Specified by:
cancelOrder
in interfaceOrderCancellingService
- Parameters:
order
- the order to cancel
-
initializeService
@PostConstruct public void initializeService() -
setExcludedFields
-
setExcludedRelations
-