Deleting a Sales Order: Conditions and Cases Where Deletion Is Blocked
This manual explains deleting a sales order: where to delete it, who can delete it, the cases where the system blocks deletion with the message for each, and what happens after deleting. Deletion is permanent; a sales order does not go to the trash.
Article contents
Before you start
- The Edit & Delete All Sales Orders permission, or Edit & Delete His Own Sales Orders for sales orders the user created or is the sales person on. The owner and the system admin can always delete.
- The sales order has no issued sales invoice, and no invoice in the invoices trash.
- If the Manufacturing app is active: the sales order is not selected in a production plan.
- Make sure you no longer need it: deletion cannot be undone.
Steps to delete a sales order
First: open the sales order
- From the main menu click Sales, then Manage Sales Orders.
- Open the sales order, or click Actions on its row in the list.
Second: delete and confirm
- Click Delete.
- A Confirmation Message page shows: «Are you sure you want to delete following Sales Order with all related data?» and the sales order number.
- Choose:
- Yes: the sales order is deleted, a deletion message appears and you return to the sales orders list.
- No: you return to the sales order without deleting.
Note: If the sales order is in a state that blocks deletion, the confirmation page does not open: you return to the sales order with a message explaining why (see «Validations and error messages»).
Fields
Deleting has no fields: the confirmation page has only the Yes and No buttons.
Settings that affect it
No setting changes the conditions for deleting a sales order.
Validations and error messages
| Message | When it appears | Fix |
|---|---|---|
| «You cannot delete the sales order with status partially Invoiced or Invoiced» | The sales order has an issued sales invoice (fully or partially invoiced). | Delete the linked invoice first, delete it permanently from the trash, then delete the sales order. |
| «The sales order couldn’t be deleted. Please make sure related sales invoice is removed completely from system and trash.» | The linked invoice is deleted but still in the invoices trash. An [Invoices Trash] link appears with it for users with Manage Deleted Sales Transactions; it opens this sales order’s invoices only. | Open the link, click Permanent Delete on the invoice, then delete the sales order. |
| «You cannot delete/update the sales order that already selected in the production plan #…» | The sales order is selected in a production plan (with the Manufacturing app). The message links to the plan. | Remove the sales order from the production plan or delete the plan, then delete it. |
| «You are not allowed to delete sales order» | The user can see sales orders but lacks the right delete permission. | Add Edit & Delete All Sales Orders or Edit & Delete His Own Sales Orders to the role. |
| «Invalid Sales Order» | The user has His Own permissions only and opened a sales order that is not theirs; they are sent to the sales orders list. | Someone with Edit & Delete All Sales Orders deletes it, or the user is set as its sales person. |
| «You are not allowed to access this page» | The user has no sales order permission at all; they are sent to the home page. | Add the right sales order permissions to the role. |
| «Sales order not found» | Opening the link of a deleted sales order. | A deleted sales order cannot be restored; create a new one if needed. |
Restrictions
| Restriction | Details |
|---|---|
| Issued linked invoice | Blocks deletion while the invoice exists. |
| Invoice in the trash | Blocks deletion until the invoice is deleted permanently from the invoices trash. |
| Draft linked invoice | Does not block opening the delete page; the sales order stays Open while the invoice is a draft. |
| Production plan | A sales order selected in a production plan cannot be deleted or edited. |
| Permanent deletion | The sales order does not go to the trash and cannot be restored. |
Permissions
| Permission | What it allows | Without it |
|---|---|---|
| Edit & Delete All Sales Orders | Edit and delete any sales order | The Delete button is not shown for sales orders the user does not own. |
| Edit & Delete His Own Sales Orders | Edit and delete sales orders the user created or is the sales person on | The Delete button is not shown; opening the delete link directly shows «You are not allowed to delete sales order». |
| Manage Deleted Sales Transactions | The [Invoices Trash] link in the block message, and permanent deletion of the invoice | The message shows without the link. |
What happens after saving
- The sales order and its data are deleted permanently, and a deletion message appears.
- You return to the sales orders list; opening its link afterwards shows «Sales order not found».
- If the sales order was created from an estimate, the estimate’s status becomes Accepted (it was Ordered while the sales order existed).
- The deletion is recorded in the activity log (from the code).
- A sales order has no journal entries or stock movements, so nothing is reversed.
Troubleshooting
| Problem | Cause | Fix |
|---|---|---|
| The Delete button is missing on the sales order | The user lacks the delete permission for this order. | Add Edit & Delete All Sales Orders, or His Own if it is the user’s order. |
| «Invalid Sales Order» when opening the delete link | The sales order is not the user’s and their permission is His Own only. | Ask someone with Edit & Delete All Sales Orders to delete it. |
| «You cannot delete the sales order with status partially Invoiced or Invoiced» although the invoice is unpaid | The message appears whenever an issued invoice exists, paid or not. | Delete the linked invoice, then delete it permanently from the trash. |
| The invoice was deleted but deletion is still blocked | The invoice is in the trash. | Click [Invoices Trash] in the message, then Permanent Delete. |
| The trash link is missing from the message | The user lacks Manage Deleted Sales Transactions. | Ask someone with the permission to delete it permanently, or add it to the role. |
| Production plan message | The sales order is selected in a production plan. | Open the plan from the link in the message and remove the sales order. |
FAQs
Can a sales order be restored after deletion?
No. Deleting a sales order is permanent; it does not go to the trash.
Why does the message mention payment when the invoice is unpaid?
The message appears for any issued sales invoice of the order, paid or unpaid; what blocks deletion is invoicing, not payment.
Does a draft invoice block deleting the sales order?
It does not block opening the delete page; the sales order stays Open while the invoice is a draft.
Is deleting the linked invoice enough?
No. The deleted invoice goes to the trash and keeps blocking until it is deleted permanently from there.
Can an employee delete only their own sales orders?
Yes, with Edit & Delete His Own Sales Orders: they delete orders they created or are the sales person on.
What happens to the estimate the sales order was created from?
Its status becomes Accepted after the sales order is deleted (it was Ordered while the sales order existed).