# Progress invoicing and retention

> Bill a contract or a project by the percentage complete or by milestone, with what was billed before and this period's amount on every invoice, withhold retention and release it later, draw a retainer down against the bills, and choose when the tax on the retention falls due.

Source: /help/en/invoices/progress-invoicing-and-retention

Contractors, fit-out firms, engineers and consultants are often paid as the work advances. Each month, or at each stage, the work done to date is certified, the customer is invoiced for what was added since the last invoice, and a part of every invoice is held back as **retention** until the job is handed over.

Alya Books keeps this as **progress billings** on a customer contract or on a project. A billing certifies the work done to a date; its invoice bills this period's amount, less the retention withheld and the advance recovered. The retention waits on its own account until you release it.

## Before you start

- Progress invoicing is part of the **Professional** and **Enterprise** plans. On another plan the **Progress billings** card says so and an owner changes the plan under **Settings → Subscription**.
- **Settings → Accounting → Modules**: **Contracts** must be **Enabled** to bill a contract, **Projects and time** to bill a project.
- The chart needs the account with the role *Retention receivable* (1280 in the standard chart). A ledger enabled before it arrived is told so on the first invoice: upgrade the pack under **Settings → Accounting** first (see [Country packs](/help/en/accounting/country-packs)).
- Every member reads the billings. Creating, invoicing, voiding and releasing need a role that prepares documents; a viewer only reads.

## A worked example: a fit-out contract

Golden Trading fits out a tower floor for Marina Fit-Out LLC for AED 400,000.00: joinery and partitions for AED 200,000.00, mechanical and electrical work for AED 100,000.00, and AED 100,000.00 on handover. The customer withholds 10 per cent of each bill as retention, up to 5 per cent of the contract value (AED 20,000.00). Marina has already paid an advance of AED 40,000.00 plus VAT on an [advance invoice](/help/en/invoices/advance-invoices), to be recovered at 10 per cent of each bill.

The figures below are those of the tax point **When the retention is released**, which is the default. [When the tax on retention falls due](#when-the-tax-on-retention-falls-due) shows the same contract under the other tax point.

### The contract

1. **Contracts → New contract**: side *Customer*, Marina Fit-Out LLC as **Contact**, **Name** `Marina tower fit-out`, **Start date** `1 January 2026`, **End date** `31 December 2026`, **Payment terms** `30`, **Issue generated invoices** on.
2. Under **Retention terms** in the same form: **Retention percent** `10`, **Cap (percent of the value)** `5`, **Release** *On completion*. **Create contract**.
3. On the contract's page, **Lines → Add line** three times:
- `Joinery and partitions`, **Billing model** *Progress*, **Quantity** `1`, **Unit price** `200000`
- `Mechanical and electrical`, *Progress*, `1`, `100000`
- `Handover`, *Milestones*, `1`, `100000`
4. **Activate**. The record reads **Retention** "10% withheld, up to 5% of the value · On completion" and the **Progress billings** card under the lines now offers **New billing**. The **Schedule** card holds one row only, the handover, **Not dated**: a progress line plans no rows, because each billing writes its own.

Quantity × unit price is a progress line's **Scheduled value**: the whole amount the line will ever bill.

### The first billing: 30 and 20 per cent

1. On the **Progress billings** card choose **New billing**. Set **Work certified to** `28 February 2026`.
2. Type the **Percent to date**: `30` on the joinery, `20` on the mechanical and electrical work. The other columns are worked out as you type:

| Line | Scheduled value | Previously billed | Percent to date | This period | To date |
|---|---|---|---|---|---|
| Joinery and partitions | AED 200,000.00 | AED 0.00 | 30 | AED 60,000.00 | AED 60,000.00 |
| Mechanical and electrical | AED 100,000.00 | AED 0.00 | 20 | AED 20,000.00 | AED 20,000.00 |

3. The **Retention** card takes the contract's 10 per cent: **Withheld this period** AED 8,000.00, **Cap** AED 20,000.00, **Tax point** *When the retention is released*.
4. On the **Advance** card pick the advance invoice (it reads "AED 40,000.00 unused") and type **Recovery percent** `10`: **Recovered this period** AED 8,000.00, **Balance after** AED 32,000.00.
5. The totals show the invoice before it exists:

| | |
|---|---|
| This period | AED 80,000.00 |
| Retention withheld | AED -8,000.00 |
| Advance recovered | AED -8,000.00 |
| Taxable amount | AED 64,000.00 |
| VAT | AED 3,200.00 |
| Invoice total | AED 67,200.00 |

6. **Create invoice**. A short step asks for the **Invoice date** (the day the work is certified to, unless you choose another) and whether to **Issue the invoice now** (on when the contract has **Issue generated invoices** on); **Preview the invoice** then shows the invoice and the entry it would post, and **Confirm** writes them. The billing gets a number (`PB-0001`) and reads **Invoiced**; the invoice is dated 28 February, the day the work is certified to.

The invoice carries a **Progress and retention** block, on the page and on the PDF: contract value, certified to date, previously billed, this period, retention withheld, retention to date and advance recovered. Its entry is:

| Account | Debit | Credit |
|---|---|---|
| 1200 Trade receivables | AED 67,200.00 | |
| 1280 Retention receivable | AED 8,000.00 | |
| 4000 Sales of goods | | AED 72,000.00 |
| 2100 VAT output tax | | AED 3,200.00 |

Revenue is credited for the amount certified, AED 80,000.00, less the AED 8,000.00 of the advance drawn down: the advance invoice already credited that part when it was issued.

**Save draft** keeps the billing without an invoice. A contract or a project has one draft at a time.

### The second billing: 70 and 80 per cent

1. **New billing**, **Work certified to** `31 March 2026`, **Percent to date** `70` and `80`. The percentages are cumulative, so **This period** is the difference from the last billing: AED 80,000.00 on the joinery and AED 60,000.00 on the mechanical and electrical work, AED 140,000.00 together.
2. Ten per cent of AED 140,000.00 would be AED 14,000.00, but AED 8,000.00 is held already and the cap is AED 20,000.00. The **Retention** card withholds AED 12,000.00 and says "The cap is reached: this billing withholds only what is left under it."
3. The advance and its rate carry over from the last billing: AED 14,000.00 is recovered and AED 18,000.00 of the advance is left.
4. **Create invoice** and **Confirm**. The taxable amount is AED 114,000.00, the VAT AED 5,700.00 and the invoice total AED 119,700.00.

| Account | Debit | Credit |
|---|---|---|
| 1200 Trade receivables | AED 119,700.00 | |
| 1280 Retention receivable | AED 12,000.00 | |
| 4000 Sales of goods | | AED 126,000.00 |
| 2100 VAT output tax | | AED 5,700.00 |

Retention receivable now holds AED 20,000.00 for the contract.

### The milestone

1. When the floor is handed over, type the **Invoice date** of the handover row on the **Schedule** card, `15 April 2026`. Dating the row confirms the milestone.
2. **New billing**, **Work certified to** `30 April 2026`. The handover appears by itself with the note "Confirmed milestone, billed in full": AED 100,000.00 this period. Leave the two progress lines as they stand; a line left alone bills nothing.
3. Nothing more is withheld, because the cap is spent. The advance gives AED 10,000.00, which leaves AED 8,000.00 of it for later bills.
4. **Create invoice** and **Confirm**: taxable AED 90,000.00, VAT AED 4,500.00, total AED 94,500.00.

| Account | Debit | Credit |
|---|---|---|
| 1200 Trade receivables | AED 94,500.00 | |
| 4000 Sales of goods | | AED 90,000.00 |
| 2100 VAT output tax | | AED 4,500.00 |

On a contract with a progress line, milestones are billed by its billings; the daily run and **Generate invoices** leave such a contract alone.

### The release

1. On 30 June the retention is due back. On the **Progress billings** card choose **Release retention**. The dialog reads the balance from the ledger: **Withheld** AED 20,000.00, **Released** AED 0.00, **Available to release** AED 20,000.00.
2. Leave the amount at AED 20,000.00 (or type a part), set **Release date** `30 June 2026`, then **Release retention**. The preview shows the release invoice and its entry; **Confirm**.
3. The release is a tax invoice of its own: AED 20,000.00 plus VAT of AED 1,000.00, AED 21,000.00 in all.

| Account | Debit | Credit |
|---|---|---|
| 1200 Trade receivables | AED 21,000.00 | |
| 1280 Retention receivable | | AED 20,000.00 |
| 2100 VAT output tax | | AED 1,000.00 |

The card now reads **Withheld** AED 20,000.00, **Released** AED 20,000.00, **Outstanding** AED 0.00, and lists the release with its invoice under **Releases**. Retention receivable holds nothing for the contract.

The **Release** setting of the retention terms (*On completion*, *Days after completion*, *By hand*) gives the date the card shows as "release due". It is a reminder: retention is always released by a person, never by the daily run.

## When the tax on retention falls due

The amount withheld is part of the price, so VAT is due on it at some point. There are two views of when, and Alya Books supports both. The entries below are those of the first billing of the example.

### When the retention is released

The amount withheld is left out of the progress invoice's taxable amount, as a deduction that reads "Retention withheld". The customer is charged VAT on what is billed now, and the release is a tax invoice of its own with the VAT on the amount released.

- The progress invoice: taxable AED 64,000.00, VAT AED 3,200.00, total AED 67,200.00. It posts trade receivables AED 67,200.00 and retention receivable AED 8,000.00 against revenue AED 72,000.00 and VAT AED 3,200.00.
- The release of AED 20,000.00: a release invoice of AED 21,000.00. It posts trade receivables AED 21,000.00 against retention receivable AED 20,000.00 and VAT AED 1,000.00.

### On each progress invoice

Each progress invoice carries the VAT on the full amount certified. The invoice total includes the retention, which is not yet due: the billing's page shows **Retention inside the total** and **Due now**. On the invoice the **Progress and retention** block ends with **Due now** too: what is still to pay, the same figure as **Outstanding** on the **Payments** card, so it follows each release and each payment. The release makes the withheld part due without a new tax invoice.

- The progress invoice: taxable AED 72,000.00, VAT AED 3,600.00, **Invoice total** AED 75,600.00, **Due now** AED 67,600.00. It posts trade receivables AED 67,600.00 and retention receivable AED 8,000.00 against revenue AED 72,000.00 and VAT AED 3,600.00.
- The second progress invoice: total AED 132,300.00, of which AED 12,000.00 is retention. It posts trade receivables AED 120,300.00 and retention receivable AED 12,000.00 against revenue AED 126,000.00 and VAT AED 6,300.00.
- The release of AED 20,000.00: a transfer entry, not an invoice. For each progress invoice, oldest first, it moves the withheld part to trade receivables: AED 8,000.00 for the first invoice and AED 12,000.00 for the second. Each amount names its invoice and is due on the release date plus the contract's payment terms. A payment on the invoice then settles it.

### Which one applies

- The default is **When the retention is released**. It is the working default of the Gulf pack and is still being confirmed with the accountants; ask your tax adviser which tax point applies to your contracts before the first billing.
- An organisation chooses under **Settings → Accounting → Retention tax point**: **Pack default**, *When the retention is released* or *On each progress invoice*. The badge beside the list says whether the tax point in force is the **Pack default** or **Chosen by this organisation**.
- A contract or project keeps the tax point of its first billing. Changing the setting applies to contracts and projects not yet billed; a release always follows its contract or project, never the setting of the day.

## What the customer is asked for

Retention that is withheld is not due, so the customer is never asked for it before you release it.

- Under *When the retention is released* the retention is outside the invoice total. The invoice asks for its total, as any invoice does.
- Under *On each progress invoice* the invoice total includes the retention, and everything that asks the customer for money leaves the withheld part out: the [payment link](/help/en/invoices/pay-by-link) and its pay page, the [customer portal](/help/en/portal/customer-portal), the [payment reminder](/help/en/documents/payment-reminders) and its email, and the **Record payment** dialog, which starts with what is due now.
- The customer is told so in one line. The reminder letter ends with "Retention of AED 8,000.00 is withheld and not yet due; it is not included in this amount.", its email says the same, and the pay page names the retention withheld under the amount.
- The invoice reads **Paid** once what is due now is received, while the retention stays on account 1280. A release makes the released part due: the invoice reads **Partially paid** again, and a new payment link or reminder asks for the released part. Reversing the release entry takes that back.
- While only withheld retention is left on an invoice, nothing is due now, so the invoice offers neither **Create link** nor a reminder, as on a paid invoice. Through the API or an assistant, a payment link is answered with "Nothing is due on the invoice now", and a reminder is refused as for a paid invoice.
- A statement of account never counts retention in its balance. Under either tax point it shows one line under the closing balance, **Retention withheld, not yet due**, with the amount.

### Example: the first invoice paid by link

The first progress invoice of the example under *On each progress invoice* has an **Invoice total** of AED 75,600.00, of which AED 8,000.00 is retention.

1. On the invoice, **Create link** in the **Pay by link** card. The link is for AED 67,600.00, and the pay page adds the line about the AED 8,000.00 withheld.
2. The customer pays AED 67,600.00. The invoice reads **Paid**; retention receivable still holds AED 8,000.00.
3. You release AED 3,000.00 with **Release retention**. The invoice reads **Partially paid**: AED 3,000.00 is due now and AED 5,000.00 is still withheld.
4. **Create link** again. The new link is for AED 3,000.00; once it is paid the invoice reads **Paid** again, with AED 5,000.00 still withheld.

### The released part's own due date

Under the tax point *On each progress invoice*, a release makes part of an invoice's retention due, and that part is due on its own date: the release date plus the contract's payment terms. The invoice's own due date has usually passed long before.

- Once everything else on the invoice is paid, the invoice follows the release's date. Its **Payments** card reads *Outstanding AED 3,000.00, due 30 August 2026*, and the invoice list shows the same date as the due date.
- The invoice is **not overdue until that date**. Before it there is no **Overdue** badge, no overdue notice, and no reminder; the reminder levels count their days from it.
- With several releases unpaid, the date is that of the oldest one.
- While another part of the invoice is still unpaid, the invoice's own due date applies as before.
- The dashboard's receivables, the phone app's overdue figure and the bank matching suggestions ask for what is due now. They leave out retention that is withheld and not released, as the customer's side does.
- On the statement of account a released amount reads *Retention released · INV-0012*, in Arabic too, and names the invoice it was withheld from.

## Projects

A project is billed by progress when its **Billing method** is *Progress* (see [Project time and billing](/help/en/documents/project-time-and-billing)).

- **Projects → New project**, or **Edit** on a project: **Billing method** *Progress*, the fee in **Fixed fee**, and the **Retention terms**. The project needs a customer.
- The **Progress billings** card on the project's page works as on a contract. With the fee alone the billing has one line, the project fee, and you type one percentage.
- To bill task by task, give tasks a part of the fee: **Tasks → Add task** (or edit a task) and fill **Fee**. With a fee on any task the billing has one line per task; without one, the project fee is one line.
- A project has no **Issue generated invoices** switch, so **Issue the invoice now** starts off for it: switch it on in the **Create invoice** step, or leave the invoice a draft and issue it from the billing later.

For example, a project with a fee of AED 120,000.00 and 5 per cent retention: the first billing at 25 per cent bills AED 30,000.00, withholds AED 1,500.00 and totals AED 29,925.00 with VAT of AED 1,425.00. The next billing at 60 per cent bills the 35 per cent added since, AED 42,000.00, withholds AED 2,100.00 and totals AED 41,895.00.

Time and expenses of such a project are still billed with **Bill unbilled work**, by hours.

## What is refused, and why

| What you tried | What happens |
|---|---|
| A percentage above 100, or an amount above the line's scheduled value | Refused (`progress_overbilled`). A line is billed to its scheduled value at most; to bill more, raise the line's value on the contract or the fee on the project first |
| A percentage below what was already billed | Refused. The percentage to date never goes down; to take back what was billed, credit the invoice |
| A **Work certified to** date before the last billing's | Refused: billings follow one another in time |
| Nothing new this period | The editor says "Nothing is certified this period" and neither button works until you raise a percentage or confirm a milestone |
| A second billing while one is a draft | The card says the draft is still open: invoice it or void it first |
| Releasing more retention than is held | Refused (`retention_exceeds_balance`). The dialog says "At most AED … can be released." A release still waiting to post counts as taken |
| Changing the lines, the discounts or the totals of a progress invoice in the invoice editor | Refused (`progress_invoice_locked`). The lines are read only and a note names the billing: change the billing, not the invoice. The notes of the invoice can still be saved |
| A billing on a contract that is not active, or a project without a customer | The card says what to do first: activate the contract, or set a customer |
| A date in a locked period | The invoice is kept as a draft; a lock date refuses the invoice or the release and names the lock (see [Period locks and partial unlock](/help/en/accounting/period-locks-and-partial-unlock)). Through the API and an assistant the refused change goes to an approver as a proposal |

## Voiding a billing

Open the billing from the **Progress billings** card and choose **Void**. A reason is required and stays on the billing.

- **A draft** is voided as it is.
- **A billing whose invoice is still a draft**: the draft invoice goes with it. Deleting the draft invoice yourself returns the billing to **Draft**, so you can change it and invoice again.
- **A billing whose invoice is issued** cannot be voided until the invoice is credited in full. Issue a [credit note](/help/en/invoices/credit-and-debit-notes) for the invoice first: the credit note takes the retention back with it, so retention receivable no longer holds that amount, and the billing can then be voided. The next billing no longer counts what the voided one billed.

A voided billing keeps its number and shows **Void**; nothing is deleted.

## Retention in the reports

- **Reports → Ageing**: a column **Retention (not due)** appears beside the buckets when a customer has retention withheld on the date. Retention is not a receivable until it is released, so it is in no bucket and not in **Total**; a customer with retention and nothing else open still has a row. See [Ageing and statements of account](/help/en/accounting/ar-ageing-and-statements).
- **Reports → Library → Retention outstanding**: one row per customer and contract or project with **Withheld**, **Released** and **Outstanding** as of a date, narrowed to one contact if you wish. The figures are read from the ledger, so they equal the balance of account 1280.
- After a release under the tax point *On each progress invoice*, the released amounts show in the ageing and on the customer's statement against their invoices, with their own due dates.

## Plans and roles

- **Plans**: Professional and Enterprise. On any other plan the card says that progress invoicing is not part of your plan, which it names, beside the badge of the plan that carries it, for example *In Professional*; billings made earlier stay readable.
- **Roles**: creating, invoicing, voiding and releasing need a role that prepares documents, an accountant for example; viewers read. The retention tax point is an accounting setting, changed by the people who change the other settings under **Settings → Accounting**.
- **Revenue recognition** (Enterprise): a contract line on a policy of the method *By percentage of completion* is recognised to the certified percentage. See [Contract billing and revenue recognition](/help/en/invoices/contract-billing-and-revenue-recognition#percentage-of-completion).

## Through the API and an AI assistant

- REST: `GET` and `POST /progress-billings`, `GET` and `PATCH /progress-billings/{id}`, `POST /progress-billings/preview`, `POST /progress-billings/{id}/invoice` and `POST /retention/release` (send `X-Preview: true` to see the invoice and the entry first), `POST /progress-billings/{id}/void`, `GET /retention/balance`, `GET /retention/releases`, and `GET` and `PUT /settings/retention` for the tax point. The contract and project routes take `retention` and the model or method `progress`.
- Assistant tools: `list_progress_billings`, `get_progress_billing`, `preview_progress_billing`, `create_progress_billing`, `invoice_progress_billing`, `release_retention` and `get_retention_balance`. The three that write ask for your confirmation first, with the invoice or the entry previewed. No tool voids a billing or changes the tax point.

See docs.alyabooks.ai.

## Related

- [Contract billing and revenue recognition](/help/en/invoices/contract-billing-and-revenue-recognition)
- [Advance invoices](/help/en/invoices/advance-invoices)
- [Project time and billing](/help/en/documents/project-time-and-billing)
- [Credit notes and debit notes](/help/en/invoices/credit-and-debit-notes)
