# Trial balance, general ledger and the ledger check

> Read the trial balance for any range, drill into an account's general ledger and from there into the entry and the document, export both as Excel or PDF in English or Arabic, and run the ledger check that compares the books with your documents.

Source: /help/en/accounting/trial-balance-and-general-ledger

The trial balance lists every account with a balance or movement: what it brought forward before the start date, the period's debits and credits, and the closing balance. It is read straight from the posted lines of the ledger, so it agrees with the journal by construction. Click an account to open its **general ledger**, where each line names the entry and the document that produced it.

## Trial balance

1. Open **Reports** in the sidebar; the **Trial balance** tab is first. The ledger must be enabled; see [Enable the ledger](/help/en/accounting/enable-the-ledger).
2. Set **From** and **To**, or use **This year**, **This quarter**, **Last quarter**, **Last year** or **Everything**. With a start date the **Brought forward** column shows each account's balance before it (the opening balance entry, when the range starts on the ledger start date). Without one the column is empty and the period is everything up to **To**.
**Basis** picks the books read, as on the financial statements: it opens on the basis under **Settings → Accounting → Report settings** (*Primary book* unless you changed it); *Primary and tax books* or *Primary + your book* show that set for this view only. See [Secondary books](/help/en/accounting/secondary-books).
3. Read the columns: **Debit** and **Credit** are the period's movements; **Closing** is debit minus credit, shown as Dr or Cr. The totals row shows both sides; the note under the table says whether they agree.
4. Click a code or name to open the account's general ledger for the same range.
5. **Excel** or **PDF** exports the table in the language of the interface (the Arabic PDF is laid out right to left).

Reversed entries and their reversals both count (they net to zero), so a reversed invoice leaves no balance but still shows movement; drafts never count. Accounts with no movement and no balance are not listed.

## General ledger

Every posted line on one account, oldest first, with the running balance (debit minus credit) and, per line:

- the **entry** number, which opens the entry;
- the **document** behind it: the invoice or credit note, the payment (with its kind: payment, refund, credit applied, write-off), or the migrated document of an opening-balance line. Click it to open the document;
- the **book** of the line: the primary book in plain text, any other book as a badge with its key, as on the register (the general ledger lists the lines of every book; see [Secondary books](/help/en/accounting/secondary-books));
- the description, the contact, and the amount in the document currency when it differs from AED.

Narrow it with **From** and **To**; the balance brought forward is the first row, and the summary shows the opening balance, debits, credits and closing balance. The same table is behind **Open register** on the chart of accounts, which adds bulk reversal and reclassification; see [Chart of accounts](/help/en/accounting/chart-of-accounts).

## Ledger check

Under the trial balance, **Check the books** runs `ledger_doctor()`: every parity failure between the ledger and your documents, and inside the ledger itself. No findings means the books agree. Each finding names the check, its severity, where it points (an entry, a document, an account role, a VAT box), the expected and actual figures and the difference.

| Check | What it means |
|---|---|
| Document not posted, Payment not posted | An issued document or a payment dated from the ledger start has no live entry (automatic posting is off, or it was refused). Post it from the document; the refusal is shown there. |
| Posting refusal on a document or payment | The automatic posting recorded a refusal (`ledger_post_error`) even though an entry exists; fix the cause and post again. |
| Entry without its document | A live entry's document was archived, marked test or deleted behind the trigger's back. Reverse the entry. |
| Tax rate without posting rule | An active tax rate has no rule for invoices or credit notes; its documents cannot post. Seed the rules under **Settings → Accounting**. |
| Default account archived, default journal switched off | A role points at an archived account with no replacement, or a default journal is inactive. |
| Receivable control | The receivable accounts do not add up to what the open documents say is owed. Usually a journal was posted straight to a receivable account without an invoice. Record the amount as an invoice, or as an opening balance with the customer and the document number, and reverse the direct journal. |
| Payable control | The payable accounts do not add up to the open bills and unreimbursed expenses. Usually a journal, entered by hand or imported, was posted straight to a payable account without a bill. Record the amount as a bill, or as an opening balance with the supplier and the document number, and reverse the direct journal. |
| Bill not posted, Expense not posted, Posting refusal on a bill or an expense | The same as for documents and payments, on the purchases side. Post it from the bill or the expense; the refusal is shown there. |
| Bill paid amount against matching | A bill's paid amount disagrees with what is matched on its payable line. |
| Reconciliation with a difference | A bank reconciliation was saved with a difference. Open it under **Bank** → **Reconciliations** and match or record the missing lines. |
| Bank statement not imported, Bank transfer with one side only, Transfer clearing balance | A statement is waiting to be imported, a transfer has no receiving side, or the transfer clearing account holds an amount outside a transfer. |
| Paid amount against matching | A document's paid amount disagrees with what is matched on its receivable line. |
| VAT box parity | A VAT 201 box of the ledger differs from the same box computed from the documents. |
| Unbalanced entry, entry totals drift, matching orphan, opening balance out of order | Should never appear; they mean a constraint was bypassed. Tell support. |

Under each finding, **How to fix** says in one sentence what clears it.

**Fix** on the dashboard's **Books health** card opens this page at the record: a ledger check finding opens the check already run with its row highlighted, and a negative cash or bank balance highlights the account on the trial balance, with the same **How to fix** sentence above the table.

Run it after a migration, before a VAT return, and whenever a figure looks wrong. An AI assistant's first move on any books is the same check.

## Good to know

- All members can read the reports; only owners, admins and accountants change the books.
- The API offers `GET /ledger/trial-balance?from&to`, `GET /ledger/accounts/{id}/general-ledger?from&to` and `GET /ledger/doctor`; AI assistants use `get_trial_balance`, `get_general_ledger` and `run_ledger_doctor`.
- Ageing and statements of account are on the other tabs of the same page; see [Ageing and statements of account](/help/en/accounting/ar-ageing-and-statements).
- The profit and loss, balance sheet, cash flow and equity statements read the same entries on Reports → Financial statements, and the standard reports (general ledger, ageing, VAT by box, vendor spend, rollforwards) run from one table on Reports → Library; see [Financial statements](/help/en/reports/financial-statements) and [Report library, dashboards and budgets](/help/en/reports/report-library-dashboards-and-budgets).
- Source documents: the trial balance shows a paperclip with the number of documents behind each account in the period, and the general ledger one per line (the line's own attachments, the entry's attachments, the files of the invoice, bill or expense behind it and the receipt matched to the bank line). Open it to trace a figure to its paper or to attach a file from the hub; see [Document hub and receipts](/help/en/documents/document-hub-and-receipts).
