On a restorable test copy, prepare two fictional orders. Record their internal IDs, invoices, shipments and credit memos. If the test environment has integrations, also record references to payment, ERP and attachment records. In Sales → Orders, select just one test order.
Check what is removed and in what order
Bulk Order Deletion 1.0.0 removes invoices, shipments and credit memos before the order record. The original controller ran against a local data model with 701 selected and 702 as the control. In a separate run, a shipment deletion error left 701 in place after its invoice had gone. Bulk Order Deletion. Module documentation.
Compare the documents by ID after the test
Check each type of document in the test copy. After an error, compare the state with your baseline and restore the copy before retrying. The table shows record counts in the local model of the two orders.
| Record type | 701 before | 701 after success | 702 control after success | 701 after interruption |
|---|---|---|---|---|
| Order | 1 | 0 | 1 | 1 |
| Invoice | 1 | 0 | 1 | 0 |
| Shipment | 1 | 0 | 1 | 1 |
| Credit memo | 1 | 0 | 1 | 1 |
Use the sales and payment workflow for cancellation or refund, based on the current order status. Check attachments, customer data and records in your ERP or payment provider separately. Adobe Commerce order workflow. Adobe Commerce refunds and credit memos.
For selecting test orders, see the earlier guide.
