Alya Books

    Help centre

    Guides for Alya Books and UAE e-invoicing

    Period locks and partial unlock

    How the lock dates, filed VAT periods, closed fiscal years and journal lock dates protect the ledger, and how to open a date range inside a locked period with a reason and lock it again.

    Once the ledger is enabled, the same locks that protect your invoices protect the books. A journal entry dated in a locked period cannot be written, changed, posted or deleted, by anyone, through the app or the API. The answer is always the same period_locked message, which names the lock and the first open date.

    What locks the books

    LockWhere it is setWhat it stops
    Lock date for everyoneSettings → Company → Tax & currency → Lock datesEvery entry dated on or before it
    Lock date for other membersSettings → Company → Tax & currency → Lock datesEntries on or before it, for members who cannot reopen periods; owners and admins pass and the pass is logged
    Filed VAT returnVAT return → Record EmaraTax submissionEntries with a VAT line (rate, box or VAT amount) dated in the filed period; entries without VAT pass
    Closed fiscal yearYear-end close (later phase)Every entry in the year
    Journal lock dateSettings → Company → Accounting → Journal lock datesEntries of that journal dated on or before it

    Future-dated entries are never blocked by a lock on past dates.

    Lock a journal

    1. Go to Settings → Company → Accounting, card Journal approval and locks.
    2. Under Journal lock dates, pick the date for a journal (for example the payroll journal once salaries are reviewed) and click Save. Clear removes it.
    3. Every change is in the audit log with the old and new date.

    Open a range inside a locked period

    1. On the same card, click Unlock a period.
    2. Give From and To (at most a year apart), the Journal (or all journals), the Entries it applies to (all, manual, reversal, transfer, invoice, payment, opening balance) and the Reason (at least five characters).
    3. Choose when it Re-locks automatically (after 1, 4, 24 or 72 hours) or only by hand, and click Unlock. Other owners and admins get a notification.
    4. Post the entries you need. The unlock shows as open in the list with its scope and reason.
    5. Click Re-lock when you are done. Both the unlock and the re-lock are in the audit log.

    A partial unlock never opens a filed VAT period (reopen the VAT return instead, which records the reason and the voluntary disclosure acknowledgement) and never opens a closed fiscal year.

    Propose a change instead of unlocking

    You do not have to unlock a period to let one change in. When a write meets a lock, the journal editor, the bank triage, the bill editor and the expense editor offer Propose this change; an AI assistant or an API client gets the same answer by itself (status: proposed). The change waits as a card in the close checklist (Proposed changes) and in the Approvals inbox; an approver other than the requester reviews the values before and after and the period impact, and Approve and apply does the partial unlock for exactly those dates, the change and the relock in one step. Where the close module is off, the notice says the change waits under Approvals, and its link Open Approvals leads to the page where it is decided. The unlock is listed with the reason proposal:<id>, already relocked. Owners and admins can turn the path off under Settings → Accounting (Locked-period writes).

    Good to know

    • Owners, admins and members with the reopen periods permission change journal lock dates and unlocks. Through the API this needs the periods:manage scope.
    • Reversing an entry in a locked period: the reversal is dated on the original day by default, so it is refused; choose a date in the open period. The original entry is still marked reversed.
    • The API offers POST /ledger/journals/{id}/lock, GET and POST /ledger/period-unlocks and POST /ledger/period-unlocks/{id}/relock; AI assistants use set_journal_lock, list_period_unlocks, unlock_period and relock_period.

    Still stuck? Contact support