Skip to main content

Enhanced archiving or deletion

This feature lets you clean up sales and purchase documents that are no longer needed, in bulk:

  • fully shipped/received and invoiced sales orders and purchase orders (and the related return orders) can be archived (copied to the document archives and then deleted) or simply deleted;
  • unposted sales invoices and sales credit memos can be deleted in bulk by selecting them in the list.

A completion percentage is displayed during processing. Each document is saved individually, so an interruption does not undo documents already processed.

An order (or return order) is archived or deleted only if:

  • it has no lines with a quantity, or all lines are fully shipped/received and invoiced;
  • there are no related warehouse activities (picks, put-aways), warehouse shipments or warehouse receipts.

Orders that do not meet these conditions are skipped without notice.

  1. Open the Sales Orders list.
  2. Choose the Archive/Delete action.
  3. In the Archive/Delete Invoiced Sales Order page, set the filters you need (for example customer or date) and confirm.
  4. Choose the mode: Archive or Delete. The message shows how many orders match the filters.
  5. The system processes the orders that meet the conditions described above.

With Archive, the order and its lines are copied to the archived sales orders before being deleted; with Delete, they are deleted without a copy.

  1. Search for Archive/Delete Purchase Orders.
  2. Fill in the options:
Field Description
Document Date Formula Optional. Processes only documents with a document date up to the date obtained by applying the formula to today's date (for example -1Y for documents older than one year). If blank, all documents are considered.
Mode Archive: copies the order and its lines to the purchase order archives, then deletes them. Delete: deletes without archiving.
  1. Confirm and answer yes to the question showing the number of documents.

Both purchase orders and purchase return orders are considered.

  1. Open the Sales Invoices or Sales Credit Memos list.
  2. Select the documents to delete.
  3. Choose the Batch Delete action and confirm the question, which shows the number of selected documents.

The selected documents are deleted one at a time, following the standard deletion rules.

Deletion of all invoiced sales orders and sales return orders can also run automatically through a job queue, for example overnight. In this case the orders that meet the conditions are deleted without being archived.