Interface RemoveDebitorExportService

All Known Implementing Classes:
RemoveDebitorExportServiceImpl

public interface RemoveDebitorExportService
A selected voucher is exported if it has a Debitor_export. The selection restricts a Voucher query to the selected vouchers, so that a large selection does not have to be resolved to its keys.
  • Method Details

    • countVouchers

      long countVouchers(Consumer<QueryBuilderBase<?,?>> selection)
    • countExportedVouchers

      long countExportedVouchers(Consumer<QueryBuilderBase<?,?>> selection)
    • removeDebitorExport

      int removeDebitorExport(Consumer<QueryBuilderBase<?,?>> selection, @Nullable @Nullable Progress progress)
      Removes the Debitor_export and the export_date from the exported vouchers of the selection. Only the keys of the exported vouchers are queried. The vouchers are loaded and updated privileged in blocks, each block in its own context and transaction, so only the vouchers of one block are in memory at a time. If it fails, the earlier blocks stay committed.
      Returns:
      the number of vouchers removed from their Debitor_export