# Ledger deletion

The module lets authorized users correct posting mistakes without posting reversals:

- delete posted documents (invoices, credit memos, shipments, receipts, returns, finance charge memos) together with their related entries;
- delete general ledger transactions from the G/L entries page, with a preview;
- edit some G/L entry fields (posting date, account, global dimensions);
- edit the posting date, task and description of job ledger entries;
- change the pay-to vendor of a posted purchase receipt;
- void G/L book and VAT register printouts.

These operations change already posted data directly: use them carefully and only as an experienced user.


In the **User Setup** page, for each user:

| Field | Description |
|---|---|
| Allow Ledger Editing | Allows editing posted entries and documents (G/L entries, job ledger entries, posting date of shipments, pay-to vendor of receipts). |
| Allow Ledger Deletion | Allows deleting posted documents, entries and fiscal printouts. |

Without these settings the operations are blocked with an error message.


The **Delete Document** action is available on the cards of these posted documents:

- posted sales invoices and credit memos;
- posted purchase invoices and credit memos;
- posted sales shipments and purchase receipts;
- posted return shipments and return receipts;
- issued finance charge memos.

Steps:

1. Open the posted document.
2. Choose **Delete Document**.
3. Confirm the deletion.

The system deletes the document and its related entries (general ledger, VAT, customer/vendor, bank, fixed assets, inventory, cost accounting, etc.) and restores the quantities on the source order lines so they can be posted again. For purchase invoices, the related receipt lines also go back to "not invoiced".

Deletion is blocked, among other cases, when:

- the user is not allowed to delete;
- the accounting period is closed or does not allow posting;
- the G/L book or VAT register has already been printed for that date;
- customer/vendor entries are no longer open or have been applied (unapply them first);
- shipments and receipts have already been invoiced;
- the electronic invoice has already been sent;
- there are fixed asset entries after those of the document.


1. Open **General Ledger Entries** and select one or more entries.
2. Choose **Delete Document**.
3. The **Ledger Deletion Preview** page opens, listing every entry that will be removed (G/L, VAT, customer, vendor, bank, fixed asset, cost) with table name, entry no., account, dates, document, amounts and posting groups.
4. Review the list, choose **Delete** and confirm *Delete these entries?*.

The whole transaction the selected entries belong to is deleted. If the entry belongs to a posted document that still exists (invoice, credit memo, finance charge memo), you are asked to delete the document first.


For users with **Allow Ledger Editing**, these fields become editable in **General Ledger Entries**:

| Field | Description |
|---|---|
| Posting Date | The new date is applied to all entries of the same transaction and to the related entries (VAT, customer, vendor, bank, etc.). |
| G/L Account No. | Changes the account of the entry. Both accounts must allow direct posting; any applications must be undone first. |
| Global Dimension 1 and 2 Code | Updates the entry dimensions. |

Changes are blocked if the period is closed or the G/L book has already been printed.


1. Open **Job Ledger Entries**.
2. Choose **Edit**: the **Job Ledger Entries Edit** page opens with the filtered entries.
3. Change **Posting Date**, **Job Task No.** or **Description**.

The date can be changed only for entries with no linked ledger or linked to a resource (in that case the resource entry is updated too).


- **Posted purchase receipt**: use the assist-edit on **Pay-to Vendor No.** to make the field editable. After confirming (*Modify pay-to vendor to no. ...?*) the new vendor and its VAT business posting group are applied to the receipt and to the purchase order, and line amounts are recalculated. Not possible if the receipt has already been invoiced.
- **Posted Sales Shipment - Update**: use the assist-edit on **Posting Date** to make the field editable.


- The reprinting information pages of the **G/L book** and **VAT registers** have a **Delete** action that removes the last recorded printout. A printout cannot be deleted if later ones exist (*Lines exists after ...*).
- In the **VAT Registers** page the **Last Printing Date** field is editable: setting an earlier date and confirming *Void printing until ...?* voids the later printouts and the VAT book entries return to not printed.