# Customers: contacts, addresses & custom fields

Three kinds of customer data are **printed on your quotations and invoices**:

- **Addresses**: where documents are addressed to.
- **Contacts**: the people on the customer's side.
- **Custom fields**: extra references a customer requires on documents, like a PO number.

All three are managed under **Administration → Customers → (customer)**.

## Addresses

Every quotation and invoice is written to one of the customer's **addresses**. If a customer has
several (headquarters, a subsidiary, a separate billing entity), add each as its own address and
choose one when you create a document. Every address needs a street, **ZIP** and **City**: an
invoice has to name the customer's full address. Without a **Recipient**, documents print the
customer's name. An address can carry the customer's **VAT number**, which is printed on invoices.

Pick the **Country** from the list, or leave it at *In your own country*. Documents print the
country in their language, so "Switzerland" on an English invoice and "Schweiz" on a German one.

For [e-invoices](https://docket.rocks/en/docs/e-invoices) an address takes an **Invoice e-mail** and, where the customer
asks for one (a public client's Leitweg-ID), a **Buyer reference**.

Each change to an address is saved right away. The **Documents** column counts the quotations,
order confirmations, delivery notes and invoices written to an address. An address in use can't be
deleted, because those documents print it.

A customer can exist without an address, for a first quotation draft, say. But until it has one, a
quotation can't be sent or confirmed and an invoice can't be published. A cancellation invoice
always goes where the invoice it cancels went.

### Tax treatment

The address also says **how the customer is taxed** (**VAT** on the address form). *VAT charged* is
the normal case. *EU reverse charge*, *third country* and *tax-exempt* print no VAT on documents to
that address and add the note the reason calls for (for reverse charge, "Steuerschuldnerschaft des
Leistungsempfängers") as the first line of the footer. If your footer text already gives the reason,
docket doesn't add it again. There is no "no VAT" without a reason.

*EU reverse charge* needs the customer's VAT number on the address, because it must be printed on
the invoice. Without it, the address won't save and an invoice to it won't publish.

Drafts follow the address; documents already sent keep what they went out with.

### Customer numbers

Every address has a **customer number**: on e-invoices, and for your accountant. docket gives the
numbers itself, starting at **Customer numbers from** and counting on by **Step** (Administration →
Settings → Invoicing), so 10000 and 10 make 10000, 10010, 10020. A number already taken is never
handed out again: the next one is the first in the steps above the highest so far, so after a typed
10113 come 10120 and 10130.

Already have numbers, from another tool or your accountant's? Tick **Custom customer numbers**
and type each address's number yourself. Untick it later and docket carries on after the highest
one. No two addresses of a workspace share a number.

## Contacts

**Contacts** are the people at the customer, with name and contact details. On a quotation or
invoice you assign the relevant contacts, plus the people responsible on your side, so a document
always says who it's for and whom to talk to. Contacts can also be the value of a custom field.

## Custom fields

Some customers only pay when a document carries their references: a **PO number**, a cost center,
an internal project code, a named approver. Custom fields are defined **per customer** and have:

- a **name**, printed as the label, e.g. "PO number",
- a **type**: free **text**, or a **contact** picked from that customer's contacts (e.g.
  "Approved by"),
- an optional **default value**.

### On quotations and invoices

A customer's custom fields appear in the **editor sidebar of every document** for that customer's
projects (quotations, order confirmations, invoices, delivery notes). You fill in the value per
accounting cycle.

The value is printed in the **info block at the top right of the PDF**, next to the document number
and dates. Contact fields print the person's name.

**Example:** Create a custom field "PO number" (text) on the customer. When their order arrives,
enter the PO number in the quotation's sidebar. It then appears on the quotation, the order
confirmation and every invoice of that cycle, so the customer's system can match your invoice.

### Archiving

When a customer stops requiring a field, **archive** it. Old documents keep their values; new ones
no longer ask for it.