Enable the ledger
Switch on double-entry books for your organisation: pick the start date and the country pack, and get a chart of accounts, journals, default accounts and the first fiscal year.
The ledger is the double-entry layer under your documents. Until you enable it, Alya Books keeps working exactly as before: invoices, the VAT return and submissions do not change. Enabling it seeds a chart of accounts and journals from a country pack so later steps (posting invoices and payments, trial balance) have somewhere to book.
Coming from desktop accounting software? Where things are: an accountant's map shows where the chart, the journals, the reports, VAT, the close and the audit trail are and what Alya Books calls them.
Steps
- Go to Settings → Company → Accounting. Only owners and admins see the Enable the ledger button.
- Set the Ledger start date. Documents dated before this day are never posted. Use the first day of the year in which you start keeping books in Alya Books.
- Pick the Country pack. For the UAE this is United Arab Emirates: IFRS for SMEs chart; its status (draft, community or reviewed) and version are shown under the picker.
- Click Enable the ledger. The card now shows the start date, base currency, pack version and the Default accounts by role: receivables, payables, VAT output, VAT input, sales, FX gain and loss, rounding, suspense, retained earnings and opening balances.
- Scroll down to Journals (SAL sales, PAY payments, MISC general, OPEN opening balances) and Fiscal years. The year containing the start date was created from the Fiscal year starts in month under Tax & currency.
- If the organisation already has history, click Post historical documents. One click posts every issued document and payment dated from the start date and lists any document it had to refuse, with the reason.
Fiscal years
- Years are created on demand: when something is posted on a date without a year, Alya Books creates it from your start month, so nothing fails for want of housekeeping.
- Click Year to declare one by hand, for example a short first period of a new company or a year end other than your start month. A year lasts between four weeks and eighteen months and may not overlap another year.
- Closing a year comes in a later release.
Hijri years
A pack that ships the Umm al-Qura calendar (Saudi Arabia) lets an organisation keep Hijri years: the year is declared by its number (1447) and runs from 1 Muharram to the day before the next 1 Muharram; the dates stay Gregorian in the books and on every report, and the year carries its Hijri label ("1447 AH"). Switch the organisation's calendar to Hijri under the ledger settings (API: calendar on the settings patch); from then on every date in the app shows the Hijri date beside the Gregorian one, in one field. The fiscal year dialog opens in Hijri mode for such an organisation and keeps the by-dates mode for a short first period.
When you switch to Hijri, the years nothing uses yet (no entry, budget, close period or corporate tax record, not closed) are replaced by the Hijri year that contains your ledger start date: a ledger started on 26 June 2025 gets FY1447H, 26 June 2025 to 15 June 2026. A year that already holds entries keeps its Gregorian dates and shows its Hijri span beside them ("1447–1448 AH"). From then on, a document dated after the last year opens the next Hijri year on its own (FY1448H), as a Gregorian organisation gets the next calendar year. A UAE organisation cannot choose the Hijri calendar: its pack ships no table (calendar_not_available).
The calendar switch. On a pack that ships the Umm al-Qura table, Settings → Accounting → Filing approval and calendar offers Gregorian or Hijri (Umm al-Qura); the fiscal years list refetches as soon as it is saved, years in use keep their dates. An organisation on a pack without the table (the UAE) sees no switch.
Good to know
- Enabling is idempotent. Clicking it again with the same start date and pack adds anything that is missing and changes nothing else; a different start date is refused.
- Posting resolves accounts by role, never by code. Rename or renumber accounts freely; to hand a role to another account, archive the current one and name the replacement (see Chart of accounts).
- The country pack is versioned data with a register of legal sources. Your copy of the chart stays as it is when the pack is updated.
- Entry numbers run per journal and per year from the pack's pattern and are taken at posting only, so a draft reserves none. A pack whose law requires an unbroken sequence marks the journal Gapless on the journals card: a number is never skipped, and an imported entry keeps its own number only when it is the next of the sequence (otherwise number_gapless). The UAE and Saudi packs ask for a sequential number, not an unbroken one, so none of their journals carries the badge (Cabinet Decision 52/2017 art. 59(1)(d); Saudi Implementing Regulations art. 53).
- The Check the books card may show the note "not reported yet" next to a figure. It means the VAT return worksheet counts submitted documents while the ledger counts issued ones, so the two agree once the documents are submitted.
- The API offers the same under
GET /ledger/settings,POST /ledger/enableandPOST /ledger/backfill; AI assistants use theget_ledger_settings,enable_ledgerandbackfill_ledgertools.
Data residency
Every pack states whether its country requires the accounting data to stay in the country (the UAE pack states no requirement since Ministerial Decision 197/2026; the Saudi pack states one as a draft until a Saudi filer confirms it). When the pack requires it and this deployment is hosted elsewhere, the enablement card shows a warning with the pack's note in English and Arabic and asks you to tick that you have read it; the acknowledgement is recorded with the enablement in the audit log. Nothing is refused and no region is chosen here: the deployment's hosting region is declared by the operator (Settings → Company shows it).