Interface OrderCancellingService
- All Known Implementing Classes:
OrderCancellingServiceImpl
public interface OrderCancellingService
this service contains all the order cancelling logic
-
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
-
Method Details
-
cancelOrders
void cancelOrders(EntityList orders, String comment, @Nullable @Nullable org.joda.time.LocalDate manualDate) throws PersistException, InterruptedException callsOrderCancellingService.cancelOrder
for every entity inorders
- Parameters:
orders
- entity list to cancel- Throws:
PersistException
InterruptedException
-
cancelOrder
void cancelOrder(Entity order, String comment, @Nullable @Nullable org.joda.time.LocalDate manualDate) throws PersistException, InterruptedException 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- Parameters:
order
- the order to cancel- Throws:
PersistException
InterruptedException
-