Alya Books

    Help centre

    Guides for Alya Books and UAE e-invoicing

    Project time and billing

    Add tasks and members to a project, log time by duration or with the timer at the project rates, have the manager approve it, bill the unbilled time and expenses by fixed fee or hours, and read the project's profitability.

    A project carries tasks, members and time. A member logs time on a task by duration or with the timer; the billing rate and the cost rate freeze on the entry from the project rates when it is logged; the project's manager approves it; approved time and the customer's billable expenses on the project are billed onto a draft invoice in one step, by fixed fee or by hours; the project's profitability reads the fees invoiced against the time at the frozen cost rates and the expenses.

    A worked example

    Golden Trading fits out Tower A for a developer: two tasks budgeted by hours, two members, two hours of design and one of build, billed by task beside a taxi expense.

    1. Settings → Accounting → Project rates → Add rate: one rate for the developer (rate 300, cost rate 120) and one for the role Accountant (rate 400, cost rate 150), valid from the start of the year. The currency is the organisation's base currency.
    2. Projects → New project: the customer, Budget (hours) 20, Billing method Task hours, Fixed fee 5000, Manager the accountant. Create project. The manager joins the members as Manager.
    3. On the project's page: Tasks → Add task Design with a budget of 10 hours; a second task Build with a Rate override of 350. Members → Add member: the developer.
    4. As the developer: Time → Start timer on Design; after two hours Stop timer. The entry shows 120 minutes at 300 (600) with a cost of 240. Then Log time on Build, 60 minutes: the task's override makes it 350.
    5. Tick the entries → Submit. As the manager: tick them → Approve. A manager never approves their own entries; an owner or admin does. The one exception: in an organisation where you are the only owner or admin and nobody else could approve the entry, you approve your own.
    6. Billing → Bill unbilled work: the two entries and the taxi expense are ticked, the method reads Task hours, the invoice is a new draft to the customer. Preview lines shows one line per task (Design, 2.00 h at 300, Build, 1.00 h at 350) and the expense line; Confirm creates the draft invoice and opens it. The entries show Billed on INV-…; the expense leaves the unbilled list.
    7. Validate the invoice. Profitability on the project reads the fees invoiced net of VAT, the time cost at the frozen cost rates, the expenses and the margin, and the same by task. Reports → Report library → Project profitability lists every project.
    8. Switch the project's Billing method to Fixed fee and bill the next approved entry: the invoice gets one line of 5,000 and the entry is marked billed at no value.

    Tasks and members

    • A task has a name in both languages, a budget in hours, an optional Rate override and a status Open or Done. Time is logged on open tasks; a task with time is marked done rather than deleted. Drag the handle to reorder the tasks.
    • A member logs time on the project; a manager approves it. The project's Manager (on the form) is a manager too, as are the organisation's owners and admins. A member of the organisation who is not on the project cannot log time on it and does not see its time.

    Rates and the frozen figures

    Project rates live under Settings → Accounting → Project rates when the Projects module is on: a billing rate and a cost rate per member, or per organisation role, valid from a date. When an entry is logged the rate, the amount, the cost rate and the cost amount are frozen on it (the task's rate override first, then the member's dated rate, then the role's). A later rate change touches later entries only. Practice firms keep their own rates under Settings → Firm → Work templates; the two tables are separate.

    The timer

    Start timer on a task keeps the start in your browser only; nothing exists in the database while it runs, and a page reload shows it still running. Stop timer writes the elapsed minutes (at least one) as a draft time entry on the task. One timer runs per project page.

    Submit and approve

    Entries start as drafts and are edited or deleted by their member. Submit locks them; the manager, an owner or an admin Approves or Rejects them with a reason. Only approved billable time is billed.

    Nobody approves their own time (the entry is skipped and the page says so), with one exception: the only owner or admin of an organisation where no other active member could approve the entry (no other owner or admin, and no other manager of the project) approves their own, so a one-person company can bill its time. The history of the entry records that the person decided their own time. Once a second approver exists, your own entries wait for them again.

    Billing methods

    • Fixed fee: one line with the project's fee; the chosen entries are marked billed at no value.
    • Project hours: one line per frozen rate, the quantity the hours.
    • Staff hours: one line per member with their hours at their rate.
    • Task hours: one line per task with its hours at the frozen rate (the task's override when it has one).

    The lines carry the unit HUR (hour), the project's code and name, the member or task and the hours, with standard VAT at the organisation's rate. The expenses ticked in the same dialog are added as the expense billing does (cost plus markup). The lines are previewed before anything is written; a draft invoice of the same customer may be chosen instead of a new one. An entry already on an invoice line is refused time_already_billed; a draft or submitted entry time_not_approved.

    Bill by progress

    A fifth billing method, Progress, bills a percentage of the project's fee, not its hours.

    • On the project form choose Billing method Progress, type the fee in Fixed fee and, if the customer withholds retention, fill the Retention terms.
    • The Progress billings card on the project's page takes the percentage complete to date, and each invoice bills what was added since the last one. A fee of AED 120,000.00 billed at 25 per cent and then at 60 per cent gives invoices of AED 30,000.00 and AED 42,000.00 before retention and VAT.
    • Give a task a Fee to bill task by task. With a fee on any task the project is billed task by task; without one, the project fee is one line.
    • Bill unbilled work still bills the project's time and expenses, by hours; Progress is not offered in that dialog.
    • Through the API, POST /projects/{id}/bill with method progress, periodTo and percent creates the billing and its invoice in one call (tool bill_project_work).

    The walkthrough, the retention and its release are in Progress invoicing and retention. The method is part of the Professional and Enterprise plans.

    Profitability

    The Profitability card and the report Project profitability read, per project and per task: the fees invoiced (issued invoices net of VAT, credit notes negative, in the base currency), the time cost at the frozen cost rates (minutes without a cost rate are counted separately), the expenses and the accepted supplier invoices on the project, the margin and its percent, the unbilled time.

    Archiving and deleting

    Archive is refused while a draft or unpaid invoice or unbilled billable time is on the project (project_in_use); the documents keep their project afterwards. Delete removes only a project nothing names.

    Through the API and the assistant

    • REST: POST /projects, PATCH /projects/{id}, POST /projects/{id}/archive, DELETE /projects/{id}, POST /projects/{id}/move-drafts, /projects/{id}/tasks, /projects/{id}/members, /project-rates, GET /projects/{id}/unbilled, POST /projects/{id}/bill (send x-preview: true to see the lines first), GET /projects/{id}/profitability; POST /time-entries with projectId and taskId, GET /time-entries?projectId=…&unbilled=true.
    • Assistant tools: create_project, update_project, archive_project, save_project_task, log_time (with projectId and taskId), get_project_unbilled, bill_project_work (asks for confirmation with the lines previewed), get_project_profitability.

    Still stuck? Contact support