Alya Books

    Help centre

    Guides for Alya Books and UAE e-invoicing

    Prepaids, accruals and loans

    Amortise a prepaid bill line over its service period, accrue services not yet billed and reverse the accrual when the bill arrives, defer an invoice's revenue, run and preview the schedules, let the assistant propose month-end accruals, record loans with an interest-only period, and import existing registers.

    Accounting → Schedules holds everything that posts itself period by period: prepaid expenses, accrued expenses, deferred revenue, loans and the depreciation of fixed assets (the latter on its own page, see Fixed assets). One engine runs them all. Every period is a planned line until the runner posts it; nothing posts before you see it: the catch-up preview lists the entries a run will create, and a locked month is skipped and recorded, never forced.

    The Schedules module and the Fixed assets module are switches under Settings → Accounting → Modules. Owners, admins and accountants create and run schedules; viewers see them.

    The common UAE prepaids: annual rent and the trade licence

    1. Record the bill with the line booked to a prepaid account: 1330 Prepaid expenses for the trade licence, 1340 Prepaid rent, 1350 Prepaid insurance. Accept it as usual; the ledger books the full amount to the asset.
    2. On the bill, set the service period (the months the bill covers) and in the Schedules card choose Create prepaid on the line. Pick the expense account it amortises to (6370 Trade licence and government fees, 6100 Rent, 6350 Insurance).
    3. The schedule appears with one planned line per month: 12,000 for a year is 1,000 a month, posted on the last day of each month as Dr expense / Cr prepaid. Quarterly is an option.

    Instalment-based contracts (rent paid in cheques): choose the method Instalments and enter the amounts per date; they must add up to the total. The same works from an expense line (Expenses → the line's service period → Create prepaid).

    Accrued expenses and the bill that settles them

    A service received but not yet billed (cleaning, audit fees, utilities read later) is accrued: New schedule of type Accrual, the expense account and the contact, the period and the total; the credit side is 2200 Accrued expenses. The runner posts one line per month.

    When the bill arrives, record it as usual and link it: on the bill page choose the accrual under Link an accrual this bill settles, or from the API with POST /schedules/{id}/link-bill. An accepted bill reverses the posted accrual entries on the bill date at once; a draft bill is reversed by the runner once it is accepted. The schedule is then completed and the bill carries the real cost.

    Payroll accruals are a monthly schedule with Reverse each period on the next day switched on (the default for an accrual without a bill): the entry posts at month end and reverses on the first of the next month, the payroll run books the actual salaries.

    AI accrual proposals

    Under Prepaids and accruals, Propose accruals reads every vendor's past bills, recurring bill profiles and service periods for the period you pick and proposes what to accrue: the recurring profile's amount when one exists, else the average of the last bills, with a confidence and the reason. Vendors that already have a bill in the period or an open accrual are left alone. Without an AI key the deterministic rules answer; with one, Claude does, and falls back to the rules on a refusal.

    A proposal is only a row: Accept creates the accrual schedule (amount, account and contact can be changed), Dismiss records why. Nothing posts until the runner.

    Proposals in the close checklist

    On the Checklist tab of an open close period, the Accrual proposals card lists the period's accrual proposals with the pattern each was derived from (the recurring profile, the average of the past bills, the service period) and the expected reversal date; the accruals proposer agent writes them each run. Accept creates the schedule, nothing posts. See Agents in the close.

    Deferred revenue

    An invoice for a year of support books its revenue on the invoice date. To spread it, defer it from the API (POST /invoices/{id}/deferred-revenue with the service period) or the MCP tool create_deferred_revenue: a setup entry moves the revenue to 2230 Deferred revenue on the invoice date and the schedule releases it to the revenue account month by month, the mirror of a prepaid. The VAT of the invoice is untouched.

    Running, previewing, pausing

    • The daily job runs every active schedule for the periods that ended. Run now on the Runs tab catches up to a date by hand; the preview eye on a schedule shows the entries first, with Run and post to confirm.
    • A period in a locked month (a closed year, the books' lock dates, a locked journal) is recorded as Skipped (locked) and the plan moves on. Once the period is open, Retry skipped periods puts them back.
    • Pause keeps the plan waiting; Resume catches up on the next run; Stop drops the periods still planned and keeps the posted ones (a stopped schedule does not resume).
    • A change of terms (end date, total, method, instalments, accounts) recomputes the periods still to post and leaves the posted ones alone. The start date and frequency cannot change once a period posted; a total below what posted is refused.
    • Every entry is a module posting (schedule:<id>:<period>): posting the same period twice is impossible, and a posted entry is reversed, never edited.

    The entries carry the labels Amortisation of …, Accrual …, Revenue released on … in the journal, with the contact and the dimensions of the template (a bill's cost centre, project and location travel to its prepaid).

    Loans

    Loans tab → New loan: payable (we borrowed: 2500 Long-term borrowings, 7000 Interest expense, 2320 Current portion) or receivable (we lent: 1920, 4530 Interest income). Enter the principal, the yearly rate, the start date, the term in months, the interest-only months at the start and the payment day. The annuity schedule is generated: interest only for the first months, then equal instalments with the principal and interest split and the balance after each one.

    • Record the drawdown books Dr bank / Cr loan on the start date; leave it off when the money was booked already.
    • Record payment on the loan page: the scheduled interest is proposed (change it if the bank charged a different amount), the rest is principal; the entry is Dr liability + Dr interest / Cr bank. Pick the bank line and it is matched at once; on the Bank page the posted payment also appears as a loan payment candidate for the line.
    • At each year end the runner reclassifies the principal due in the next twelve months Dr 2500 / Cr 2320 and reverses it on the first day of the new year, so the balance sheet shows the current portion.
    • Reports → Loan rollforward: opening, drawdowns, principal repaid, interest, closing and the current portion per loan.

    Importing existing registers

    Import tab: a spreadsheet of prepaids, accruals, deferred revenue or loans (columns Name, Module, Start date, End date, Total, Accumulated, Posted through, Expense account, Balance account, Frequency, Method, Contact; a loan: Principal, Annual rate, Term months, Interest-only months, Payment day, Outstanding, As of, Lender). Preview validates every row and creates nothing: the remaining life must leave at least one period, the accumulated amount cannot exceed the total, and when the file carries a Remaining column, accumulated plus remaining must equal the total. Refused rows are named with the reason; Import creates the valid ones with the periods already posted in the previous system left alone.

    The same through the API (POST /schedules/import) and the MCP tool import_schedules.

    Detected schedules (F-LEDGER-021, F-CLOSE-026)

    Milestone D5 adds a detector. It reads accepted bills and expenses with a line on a prepaid account (1330, 1340, 1350), on deferred revenue or on a fixed-asset cost account, lines with a service period over one month, keywords (rent, licence, insurance, subscription, laptop, vehicle, furniture), imported journals that debit those accounts and bank lines posted after a categorisation run, and proposes a schedule for each: a prepaid (the release account, the prepaid account, the start and the months), deferred revenue, or a fixed asset (the class and the useful life). Each proposal carries a confidence and the evidence in one sentence.

    • Schedules → Proposals lists them; Detect now runs the detector over the last 120 days (POST /schedules/proposals/detect, MCP detect_schedules); the Composer adds one when a sentence names a period.
    • Contracts in the hub. A tenancy contract, an insurance policy or a service agreement uploaded to the Documents page (Accounting group) and read with Read with AI (the parser kind Service contract reads the provider, the service, the term and the contract value) is a source too: a contract the company pays becomes a prepaid over its term (rent on 1340, insurance on 1350, a service on 1330, released to the matching expense account), one the company is paid becomes deferred revenue. The proposal reads Contract with the file's name and links to it; contractIds narrows a run to named files.
    • Create schedule (Create asset for a fixed asset) opens the dialog Confirm the period, where you confirm the months (or the useful life and the class for an asset) before anything is created. The provider only suggests them; a proposal accepted without the months is refused with confirmation_required. A prepaid from a bill line is created through the same path as the bill page's Create prepaid, an asset through Capitalise, so the bill line, the schedule and the asset stay linked.
    • Dismiss takes a reason; a decided source is never proposed again.
    • The open period's checklist shows every open proposal as a schedule_detected finding (an info check of the pack, threshold 0) with a link to the Proposals tab; accepting or dismissing closes it on the next run of the checks.

    Nothing posts from a proposal: the schedule it creates is run like any other (section above).

    Walkthrough

    1. Record a trade licence bill of 12,000 + VAT dated 5 January to 1330, service period 1 January to 31 December, accept it. Create prepaid to 6370: twelve lines of 1,000.
    2. Preview the catch-up up to 28 February: two entries. Run and post: 1330 shows 10,000, 6370 shows 2,000. Run again for the same date: nothing posts.
    3. Lock January on the MISC journal, create an accrual for cleaning (January to March, 3,000, 6130) and run up to 31 March: January is skipped and recorded, February and March post. Lift the lock, retry the skipped period.
    4. Record the cleaning bill of 3,000 dated 5 April and link it: the three accruals reverse on 5 April, 2200 is nil.
    5. Create a loan of 120,000 at 6 % over 24 months with 6 interest-only months; record the first instalment of 600 against the bank line; run up to 31 December: the current portion posts and reverses on 1 January.
    6. Import a prepaid register with a row whose accumulated plus remaining does not equal the total: that row is refused by name, the others import.
    7. Documents (Accounting group): upload a service agreement (provider, term 1 January to 31 December, contract value 24,000), read it with Read with AI (type Service contract), then Schedules → Proposals → Detect now: a prepaid of 24,000 over 12 months with the source Contract and the file's name; the link opens the file. Create schedule with 12 months: the schedule appears in the list; run Detect now again: the contract is not proposed a second time.

    Still stuck? Contact support