Class OrderCancellingServiceImpl

java.lang.Object
ch.tocco.nice2.optional.debitor.impl.service.OrderCancellingServiceImpl
All Implemented Interfaces:
OrderCancellingService

@Component public class OrderCancellingServiceImpl extends Object implements OrderCancellingService
  • Constructor Details

  • Method Details

    • cancelOrders

      public void cancelOrders(EntityList orders, String comment, @Nullable @Nullable org.joda.time.LocalDate manualDate)
      Description copied from interface: OrderCancellingService
      calls OrderCancellingService.cancelOrder for every entity in orders
      Specified by:
      cancelOrders in interface OrderCancellingService
      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 interface OrderCancellingService
      Parameters:
      order - the order to cancel
    • initializeService

      @PostConstruct public void initializeService()
    • setExcludedFields

      @Autowired public void setExcludedFields(List<String> contributions)
    • setExcludedRelations

      @Autowired public void setExcludedRelations(List<String> contributions)