> ## Documentation Index
> Fetch the complete documentation index at: https://docs.azvian.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Invoices

> Write an invoice with lines, discount and tax, and understand its numbers and statuses

## Create an invoice

Open **Invoices → New** (or **New invoice** from a client's page, which fills in the client). The editor has live totals that update as you type.

| Field | Meaning |
| - | - |
| **Client** | Choose from your clients. Add a new client first if they are not listed. |
| **Reference** | A purchase order number or project name. Printed on the invoice. |
| **Issue date** | Defaults to today. |
| **Due date** | Leave empty to use the client's payment terms (or your default). |
| **Currency** | Three letters, for example USD or EUR. Defaults to your company currency; each invoice has its own. |

### Lines

Under **Lines**, press **+ Add a line**, or **+ Add a saved item…** to fill one from your [items](https://docs.azvian.com/invoicer/clients-and-items.md#items). Each line has a **name**, an optional **description**, a **quantity**, a **unit** (hours, pcs…), a **price** and a **tax rate**.

### Discount

Choose **None**, **Percent (%)** or **Fixed amount**, and enter the value. The discount comes off the subtotal.

### Notes and terms

**Notes** and **Terms** are pre-filled from your [defaults](https://docs.azvian.com/invoicer/settings.md) and can be changed per invoice, for example "Thank you for your business" and your late-payment terms.

## How the totals are worked out

1. **Line total** = quantity × price.
2. The **subtotal** is the sum of the line totals.
3. The **discount** comes off the subtotal.
4. **Tax** is worked out **per tax rate** on that rate's share of the discounted subtotal, and shown per rate (for example "Tax 20%" and "Tax 5%" separately).
5. **Total** = discounted subtotal + tax.

Everything is calculated on the server with exact decimal arithmetic, rounded half-up to the cent. The editor shows a preview that is recalculated on the server when you save.

## Numbering

Invoices are numbered `INV-0001`, `INV-0002` and so on. The prefix (and the estimate prefix, `EST-` by default) is set under **Settings → Invoicing**.

## Statuses

| Status | Meaning |
| - | - |
| Draft | Not sent yet. Can be edited or deleted. |
| Sent | Sent or marked as sent. |
| Viewed | The client opened their invoice page. |
| Part paid | Some payments recorded, balance remaining. |
| Paid | Fully paid. |
| Overdue | Unpaid and past its due date. Worked out from the date, so it appears by itself. |
| Void | Cancelled. |

## From an invoice's page

* **Send** (or **Send again**): see [Sending](https://docs.azvian.com/invoicer/sending.md).
* **Record payment**: see [Payments](https://docs.azvian.com/invoicer/payments.md).
* **Edit**: while it is a draft.
* **PDF**: download it.
* **Duplicate**: copies it as a new draft, for a repeat job.
* **Mark as sent**: for an invoice you delivered another way.
* **Void**: cancels it. Clients can still open the link, but it shows as void.
* **Delete draft**: only a draft can be deleted. Once an invoice has been sent, void it instead.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.