Deleting a Sales Invoice
This guide explains how to delete a sales invoice (one invoice or several invoices), what happens to the entries, inventory, and payments after deletion, how to recover a deleted invoice, and the reasons for preventing deletion and its alternatives.
đ
Note: You need the permission Edit & Delete All Invoices, or Edit & Delete His Own (Created) Invoices to delete only the invoices you created. Without it, the message appears You are not allowed to delete this invoice. It is set from Employee Roles.
Contents
Deleting an Invoice
- From the main menu, click Sales, then Manage Invoices.
- Click the invoice you want to delete to open it.
- Click ⊠(more options) at the top of the invoice page, then Delete.
- Click Yes in the confirmation message.
You can also delete directly from the invoices list: click the actions menu next to the invoice and choose Delete.
The invoice is moved to the Trash, and you can recover it within 90 days. If a message appears preventing deletion, review Reasons for Preventing Invoice Deletion.
Deleting Several Invoices at Once
- From Manage Invoices Use the search or filters to display the required invoices. To delete invoices by their date, use the filter Date from Advanced Search.
- Select the invoices from the checkbox next to each invoice, or select all.
- From Actions choose Delete, then confirm.
Only the invoices allowed to be deleted are deleted, and the reason for preventing the deletion of each remaining invoice appears next to it.
What Happens After Deletion?
| Item | What Happens |
|---|---|
| Journal entries | The invoice entry, the cost of sales entry, and its paymentsâ entries are deleted. |
| Inventory | The related stock transactions or requisitions are canceled, so the quantities return to the warehouse. |
| Payments | They arenât deleted; their status changes to Pending, and they return to their status when the invoice is recovered. |
| Client balance | It is recalculated without the invoice. |
| Invoice number | The invoice keeps its number, and the sequence doesnât go back. |
| Activity Log | The deletion is recorded with the userâs name and time. |
đ
Important: When the invoice is deleted, its attachments, the data of the custom fields, the commissions related to it, and the installment agreement if any, are also deleted, and they donât return on recovery. Keep a copy of the important attachments before deletion.
đ
Warning: Advance Payment Invoices and invoices linked to construction payment certificates are deleted permanently and donât go through the Trash.
Recovering a Deleted Invoice
- From Manage Invoices click the actions menu (âŠ), then Trash.
- From the actions menu next to the invoice, choose Recover, or select several invoices and choose Recover from the bulk actions.
- Confirm the recovery.
The invoice returns with its number, its entries and stock transactions return, its payments return to their status, and the clientâs balance is recalculated.
- The remaining period appears for each invoice in the Trash: Permanent delete in … days.
- An invoice whose date is within a closed period canât be recovered; open the period temporarily, then recover it.
- Deleted refunds and notes are recovered each separately, and after recovering the original invoice.
- The Trash button appears only to whoever has the permission Manage Deleted Sales Transactions, and when there are deleted invoices.
Permanent Deletion
Invoices are deleted from the Trash permanently and automatically after 90 days. To delete them before that, choose Permanent Delete from the invoice actions in the Trash and confirm. Permanent deletion canât be undone.
đ
Note: An invoice in the Trash still prevents deleting the client, product, or POS session related to it, until you delete it permanently.
Reasons for Preventing Invoice Deletion
| Reason | Message | Solution |
|---|---|---|
| The invoice is electronic and has been issued (ZATCA). | According to the instructions of the Zakat and Income Authority, deleting or editing the invoice after issuing it is prevented… | Deletion isnât possible; issue a Refund Receipt or a Credit Note with its value. |
| The invoice was sent to the Egyptian Tax Authority or the Jordanian invoicing system. | You canât delete … as this document has been sent to the Tax Authority | Cancel the document from the system, then use a refund or a credit note. |
| The invoice is linked to refunds, credit notes, or debit notes. | Invoice #… cannot be deleted because it has linked refunds, credit notes, or debit notes. Remove the linked documents first. | Delete the linked refunds and notes first. |
| The invoice date is within a closed period. | You can not add, edit, or delete a transaction in this date … within a closed period | Open the closed period temporarily, or issue a credit note with a current date. |
| The invoice requisition has been approved. | You canât delete the … whose requisition has been approved | Delete or reject the requisition first. |
| The invoice belongs to a closed POS session. | You canât delete the … related to a closed session | Unconfirm the session and reopen it, or issue a refund. |
| The invoice was added to a production plan. | You cannot delete/update the Invoice that already selected in the production plan … | Remove the invoice from the production plan. |
| The invoice commission is in an approved or paid commission sheet. | You canât remove a transaction that is in an approved, rejected, or paid commission sheet | Return the commission sheet to the open status. |
| The invoice is linked to a construction payment certificate or a retention settlement. | A message explaining the related certificate or settlement. | Delete the certificate or settlement first. |
| Deleting the invoice would make the balance of a tracked product (serial number or lot) incorrect. | A message with the product and the number or lot. | Review the related tracked product transactions. |
| You donât have the permission to delete. | You are not allowed to delete this invoice | Request the permission from the account manager. |
Alternatives to Deletion
| Goal | Alternative |
|---|---|
| Canceling an issued invoice completely, especially electronic invoices | Refund Receipt (with returning the goods and the amount) or a Credit Note with the full value. |
| Correcting part of the invoice | Credit Note to decrease the value, or Debit Note to increase it. |
| Correcting the invoice data | Edit the invoice if editing is allowed. |
Frequently Asked Questions
I deleted an invoice by mistake, can it be recovered?
Yes, from the Trash within 90 days, provided its date isnât in a closed period. But its attachments and custom fields donât return.
How do I delete all invoices before a specific date?
- From Manage Invoices click Advanced Search.
- In the filter Date enter in To the day before the required date (for example, 30/09 to delete invoices before 1/10), and leave From empty, then click Search.
- Select all the displayed invoices, and choose Delete from the bulk actions, then confirm.
Only the invoices allowed to be deleted are deleted, and the reason for preventing the deletion of the rest appears.
A message appears preventing deleting or editing the invoice after issuing it?
The invoice is electronic and has been issued, and it canât be deleted according to the Authorityâs instructions; issue a Refund Receipt or a credit note to cancel it.
Are the invoice payments deleted with it?
No, they change to Pending, and return when the invoice is recovered. To delete them permanently, delete them from the payments list.
Is the number of the deleted invoice reused?
No, the sequence continues from the next number, and the deleted invoice keeps its number.
I deleted the invoice and I canât delete the client?
Because the invoice is still in the Trash; delete it permanently first, or suspend the client instead of deleting them.