Alya Books

    Help centre

    Guides for Alya Books and UAE e-invoicing

    Map the ledger to the CT computation

    Give every income and expense account a computation line once, keep the mapping year over year, save it as a firm template for other clients, let the AI add-on propose lines, and record book-to-tax adjustments as tax-only entries.

    Corporate tax reads the posted ledger through a mapping: every income and expense account carries one line of the computation (revenue, cost of revenue, deductible expense, non-deductible expense, exempt income, tax-only, excluded), and some lines carry a rule of the law (entertainment at 50 %, interest at 30 % of EBITDA, depreciation against the register). The lines, the rules and the articles behind them are data of the country pack, not code; the page shows the article next to each line.

    Switch the module on first: Settings → Accounting → Modules → Corporate tax, or the button on the page. The ledger must be enabled.

    Map the chart once

    Open Corporate tax → Mapping and pick the fiscal year. The table lists every income and expense account with:

    • Computation line: the line it feeds. Pick one per account; No line leaves it unmapped.
    • Last year: the line the account carried in the previous year, with a Changed badge when it differs.
    • Movement: the signed book movement of the year (income positive), so you see at once which accounts matter.
    • Note: why a treatment changed. The diagnostics ask for one when a line changes from one year to the next.

    Save mapping writes the rows. The Apply to switch decides the layer: From FY2026 on keeps the earlier years as they were; Every year changes them all. A row without a year applies everywhere; a row with one applies from that year on; the latest row at or before the year start wins. Only owners, admins and accountants map.

    The fastest start is the pack's UAE default mapping: open Templates and apply it. It maps by account code first (6210 entertainment, 6930 fines, 7000 interest, 6500 depreciation, 8000 corporate tax expense, the cost-of-sales accounts), then by system key (sales, cost of sales, depreciation, interest expense, unrealised FX) and last by account type (income → revenue, income_other → other income, expense → deductible, expense_tax → excluded). The result says how many accounts each layer mapped and lists what stayed unmapped.

    Save a firm template and apply it to a client

    When a chart is mapped the way your firm wants it, Save as template. The template keeps three layers (one row per account code, one per system key, and per account type the line most of its accounts carry), so it applies to a client whose chart differs in detail. A client you manage sees your templates beside the pack's under Firm and applies them with one click.

    Applying is idempotent and complete: it maps every account of the client by code, then system key, then type, and overwrites the current rows of the layer. Re-apply a template after someone changed or removed rows by hand and every layer is restored; the result repeats the counts and says Every layer restored. Deterministic templates are free for every plan.

    AI proposals (AI add-on)

    With the AI add-on on (Settings → Accounting), Propose with AI asks the provider for a line per unmapped account, with a confidence and a one-sentence reason naming the article. Proposals wait in the side panel and as a badge on the account's row; Accept writes the mapping, Dismiss drops it. Nothing maps until you accept. Without the add-on the button is hidden and the server answers ai_addon_required; templates and hand mapping stay free. Without an Anthropic key the deterministic stub proposes by name pattern (entertainment, fines, donations, dividends, interest, depreciation) and then by type.

    Book-to-tax adjustments

    The Adjustments tab records what moves accounting profit to taxable income. Each adjustment names a kind (entertainment above the 50 % cap, interest above 30 % of EBITDA, fines and penalties, donations to non-qualifying bodies, unrealised FX under the realisation basis, depreciation difference to the register, related-party pricing, exempt dividends, tax loss relief, other), an account, an amount and a direction (add back raises taxable income, deduct lowers it).

    Save and post books a tax-only entry in the TAX journal: an add-back credits the account and debits 3910 Book-to-tax adjustments (tax basis only); a deduction goes the other way. Tax-only entries never touch the books: the trial balance, the statements on the book basis, the year-end close, the KPIs and the budgets leave them out; the statements on the tax basis (Settings → Accounting → Report settings, or the basis switch) include them, and the computation counts them. Posted entries are never edited: changing an adjustment reverses the old entry and posts a new one (ct:<id>:2), removing one reverses it and keeps the row as Reversed. A manual journal booked in the TAX journal is tax-only too.

    Proposed by the pack rules lists what the computation derives from its own figures, with the figures: 50 % of the entertainment line, the interest above 30 % of EBITDA once net interest exceeds AED 12 million, the difference between book depreciation and the fixed asset register, the net unrealised FX result when the realisation basis is elected. Post opens the dialog filled in. Suggest with AI (AI add-on) does the same through the provider and leaves the suggestions as Proposed rows with a reason; Accept and post books them.

    An adjustment keys on account and kind, not on a trial balance row: re-import the client's trial balance (Import page) and run the computation on the new snapshot, and the adjustment is still there and still counted.

    The Reconciliation schedule on the right is the bridge the return asks for: accounting profit, the add-backs from the mapping (non-deductible lines), the posted adjustments, the tax-only journals, the exempt income, taxable income before loss relief, the loss relief, taxable income.

    Through the API and the MCP server

    GET /corporate-tax/mappings, PUT /corporate-tax/mappings, the templates (/corporate-tax/templates, POST …/{id}/apply), the proposals (/corporate-tax/mapping-proposals, …/run, …/{id}/decide) and the adjustments (/corporate-tax/adjustments, …/proposals/run, …/{id}/decide) run the same Postgres functions as the page. MCP: get_ct_mapping, apply_ct_mapping_template, save_ct_adjustment.

    Still stuck? Contact support