# The billing cycle at a glance

Every project bills its work in **cycles**. A cycle starts with a quotation and ends with the
final invoice; everything in between belongs to it. A project's cycles are in its
**Accounting** tab.

With several cycles in a project, **By cycle** above the columns puts each cycle in a row of its
own. In **By type** a dot appears on the edge of a card when you point at it: click
it to show the documents of its cycle, connected by lines. Next to it, **Search or filter** narrows the documents down
by number, title or contact, by status or by invoice type.

<img src="https://docket.rocks/kb/billing-cycle.svg" alt="Quotation, confirmed by the customer, creates the order confirmation automatically; from it you create optional delivery notes and the invoices: an advance payment or partial invoices, then the final invoice." style="max-width: 100%; height: auto;">

## Four ways to bill

You choose the way per job, not per workspace. A project can have several side by side.

| Way | How it works in docket |
| --- | --- |
| **Fixed price from a quotation** | Quotation, order confirmation, then advance payments or partial invoices and the final invoice (this article). |
| **By effort** | An invoice without order confirmation with **Bill the time booked**: the time of a period, nothing twice (see [Billing by effort](#billing-by-effort)). |
| **Retainer** | A fixed fee per month, optionally covering a contingent of hours with the overage billed on top; docket proposes each month's invoice (see [Retainers](https://docket.rocks/en/docs/retainers)). |
| **Mixed** | Every job is a cycle of its own: the fixed price in its cycle, the hours afterwards in an invoice without order confirmation. |

## From quotation to order confirmation

1. **Write the quotation** and **publish** it. Publishing locks its content; to change it,
   **Back to edit mode** makes it a draft again.
2. **The customer accepts.** Use **Confirm quote** on the quotation. You can attach the
   customer's signed confirmation (a PDF up to 2 MB) and a note.
3. **docket creates the order confirmation** with the quotation's positions. Confirming again
   later updates it instead of creating a second one. Publish it when it's ready to go out.
4. **Take it into the budget.** Right after confirming, docket offers to put what the quote
   sold into the project budget: the hours of its hour and day lines (a day is 8 hours, external
   services left out) or its net total with external services and commission, shown in its
   parts, whichever the budget counts. **Set as budget** for a first quote, **Add to budget** for
   a supplementary one. Optional items don't count, a monthly budget is left alone, and a quote
   goes into the budget only once.

docket doesn't email documents to your customer: open or download the PDF and send it yourself.
Only send **published** documents.

## Delivery notes

Optional. Create them from the order confirmation with **Create delivery note**, as many as you
deliver in parts. They take over the order confirmation's content.

## Invoices

Create invoices from the order confirmation with **Create invoice**. Which types you can create
depends on what the cycle already has:

| Type | When |
| --- | --- |
| **Advance payment** | Before or during the work: a percentage or a fixed amount of the total. The quotation's discounts and surcharges stay with the job, so add one to an advance payment yourself if it should have one. It names your master agreement only for a customer marked **Master agreement** (Administration → Customers → Accounting). Not combined with partial invoices. |
| **Partial invoice** | Bills only the positions you select. As many as you need. Not combined with an advance payment. |
| **Final invoice** | Bills the full total **minus everything invoiced before** in this cycle (invoices that went out; drafts don't count). After it, the cycle takes no more invoices. |

No quotation for this job? Create an invoice **without order confirmation**. It is a cycle of its own, so it is always a plain invoice: advance payments and partial invoices need an order confirmation, whose final invoice deducts them.

### Billing by effort

Tick **Bill the time booked** in that dialog and the invoice starts with one line per time entry of
the project. Choose a period (**From**, **Until**) to bill a month; leave both empty for everything
that is open. The dialog says how many entries and hours that is.

- Only **billable** services count, and only entries **no other invoice holds**, drafts included.
  So next month's invoice takes only what is new.
- An entry on an invoice is **locked**: it can't be changed or deleted, so the invoice and the time
  list never disagree. It is free again when you remove its line from the draft, delete the draft
  or cancel the invoice. A correction keeps its entries.
- Under **Controlling → Timetrackings** the view **Not billed yet** lists what the next invoice
  would take. **Show billing** adds a column **Billed**: a dot links to the invoice (a ring while it
  is a draft).
- Entries on invoices written before this existed aren't marked: bill by period once, from then on
  docket keeps track.

docket warns when a cycle's invoices **exceed the quotation total**. When an advance payment or
partial invoices already cover all of it, docket offers to **convert** the invoice into the final
one.

## An invoice's life

<img src="https://docket.rocks/kb/invoice-lifecycle.svg" alt="An invoice starts as a draft and can be deleted until it is published. Publishing gives it its number; from there it is marked as paid, canceled, or corrected; a payment can be taken back. Canceling creates a cancellation invoice that reverses it; correcting cancels it and opens a copy as a new draft. Before it reaches the customer it can also go back to draft, keeping its number." style="max-width: 100%; height: auto;">

- **Publishing** gives the invoice its number and makes it final. Project Managers prepare
  invoices and may delete a draft; only Admins publish.
- **Before it has a number** (a draft), you can still change an invoice or delete it.
- **Last minute edit**: you spotted a mistake after publishing, but your customer doesn't have
  the invoice yet? An Admin takes it back to edit mode. It **keeps its number**; you fix
  whatever is wrong (date, positions, amounts, address) and publish it again. docket asks what is
  wrong and for your confirmation that the customer hasn't received it, and keeps both with the
  previous PDF under **Earlier versions** in the editor. While it's being corrected it can't be
  deleted, so its number stays in the sequence. Not possible once the final invoice has settled
  it.
- **Correct**: the customer already has it? Then a published invoice isn't edited again, because
  that's how invoices have to be kept. **Correct** cancels it and opens a copy as a new draft in
  the same cycle. Fix it there, publish both the cancellation invoice and the corrected invoice
  (each gets its own number), and send your customer both.
- **Mark as paid** when the money arrives, optionally with the payment date. Marked by mistake, or
  the bank took the payment back? **Reverse payment** (admins only) makes the invoice unpaid again;
  its number, PDF and e-invoice stay as they went out.
- **Canceling** never deletes an issued invoice: docket creates a **cancellation invoice** that
  reverses it figure for figure and gets its own number when published. Only published invoices
  can be canceled.
- **Once the final invoice is out**, the invoices before it stay as they are. To cancel an
  advance payment or partial invoice then, cancel the final invoice first, then the earlier one,
  and issue a new final invoice. That way the final invoice your customer has never changes.
  Without a final invoice, any of them can be canceled; the final invoice later bills what a
  canceled one had billed.
- A published invoice still unpaid **past its due date** is **overdue**. The due date is the
  invoice date plus the payment term: the customer's own (Administration → Customers → Accounting) or
  your workspace's (Administration → Settings → Invoicing, 14 days unless you change it). It's written on
  the invoice when it's published and printed on the PDF.

## The cycle in your project list

Project Managers and Admins see a project's billing in the **Billed** column (turn it on or off
under **Display → Show billing**): how much of the confirmed quotations is invoiced, in red once
something is overdue. The bar under it is all quotations sent: green is paid, blue open, red
overdue, light blue not invoiced yet, dashed not confirmed yet. Hover it for each quotation's
figures. Drafts aren't shown.

The list and the Forecast can be filtered by a cycle's status:

| Status | Meaning |
| --- | --- |
| Quote draft | The quotation is still being written. |
| Quote sent | The quotation is published. |
| Quote confirmed, awaiting invoice | The customer accepted; nothing invoiced yet. |
| Invoice open | A published invoice waits for payment. |
| Invoice overdue | A published invoice is unpaid past its due date. |
| Paid | An invoice of the cycle is paid. |
| Canceled | The quotation, or every invoice of the cycle, was canceled. |

## Related

- [The quotation & invoice editor](https://docket.rocks/en/docs/quotation-invoice-editor): phases, positions, services
  and the totals in detail.
- [External costs](https://docket.rocks/en/docs/external-costs): supplier invoices and how they reach the quotation.
- [User roles](https://docket.rocks/en/docs/user-roles): who may do what.