# Advance invoices

> Issue a tax invoice for an advance or retainer, collect it, and deduct it on the final invoice so VAT is reported once.

Source: /help/en/invoices/advance-invoices

An advance (retainer) invoice is a tax invoice: in the UAE, VAT is due on the advance when it is received, not when the work is finished. Alya Books issues the advance as a normal tax invoice and later deducts it on the final invoice, so VAT is charged on the balance only and reported once.

## Issue and collect the advance

1. Open the proforma and click **Convert → Advance**, then enter the percentage of the proforma to invoice now. Through the API, create a tax invoice with `isAdvance: true`.
2. Validate, submit and send the advance invoice as usual.
3. Record the payment on the **Payments** card. The advance must be paid in full before it can be deducted.

## Deduct it on the final invoice

1. Create the final invoice as a draft to the same customer in the same currency.
2. In the totals box, click **Apply advance**. The dialog lists the customer's collected, unused advances and the balance left on each.
3. Pick the advance and the amount to deduct. Alya Books books the deduction as a document allowance per VAT group of the advance, names the advance as the prepayment invoice (BT-25), and charges VAT on the remaining balance only.
4. Check the totals box, then validate and submit the final invoice.

## Drawn down against progress bills

On a contract or a project billed by progress, the advance works as a retainer: each progress invoice recovers a part of it, in place of one final invoice that deducts it all.

1. In the progress billing editor, pick the advance on the **Advance** card and type the **Recovery percent**, for example `10`.
2. The billing recovers that percentage of this period's amount, never more than what is left of the advance. The card shows **Unused before**, **Recovered this period** and **Balance after**, and the next billing carries the advance and its rate over.
3. The invoice deducts the amount recovered as the final invoice above does, so VAT is charged on the rest only.

An advance of AED 40,000.00 recovered at 10 per cent gives AED 8,000.00 on a first bill of AED 80,000.00 and AED 14,000.00 on a second of AED 140,000.00, which leaves AED 18,000.00 for later bills. Only a collected advance with an unused amount is offered. See [Progress invoicing and retention](/help/en/invoices/progress-invoicing-and-retention).

## Good to know

- One advance per final invoice, because the invoice carries one BT-25 reference.
- The unused balance per customer is visible in the dialog, through `GET /customers/{id}/advances` and with the `list_customer_advances` tool.
- API: `POST /invoices/{id}/advance` with `{advanceInvoiceId, amount}` applies an advance (tool `apply_advance_to_invoice`); `DELETE /invoices/{id}/advance` removes it from a draft.
- The **Paid in advance** amount (BT-113) is a different thing: use it for amounts received that were not invoiced with VAT. See [Paid in advance and rounding](/help/en/invoices/paid-in-advance-and-rounding).

## Related

- [Proforma invoices](/help/en/invoices/proforma-invoices)
- [Progress invoicing and retention](/help/en/invoices/progress-invoicing-and-retention)
- [Paid in advance and rounding](/help/en/invoices/paid-in-advance-and-rounding)
- [Payments and payment status](/help/en/invoices/payments-and-payment-status)
