## Quotes

A quote is a repair estimate prepared on an issue and sent to the customer. The customer opens a link (no login needed), picks a variant and accepts or declines the quote. The decision goes into the issue history and can trigger a [business rule](/config/business-rules) — e.g. creating a repair job or sending a message to the customer. Quotes are part of the [Service add-on](/service).

All quotes of the account — e.g. those the customer has not answered yet — are on the **Quotes** screen in the main menu (see [Quote list](#quote-list)).

{% callout title="Requirements" %}
The **Quotes** section appears on the issue details page when the **Quotes** feature is enabled for the issue type (**System → Issue types → Edit Type → Service features**).

Permissions in the **Quotes** group: **View quotes**, **Create quotes**, **Edit quotes**, **Send quotes to the customer**, **Delete quotes**, **Accept or reject a quote on the customer's behalf**. Own cost and margin are visible only to people with the **View costs and margin** permission (in the **Service work** group).
{% /callout %}

## How it works

1. On the issue details page you create a quote — a **draft** with one variant is created.
2. You add items (labor, parts, travel) and optionally more variants, e.g. "repair" and "replacement".
3. You click **Send to customer**, check the recipients and the message preview, then click **Send**. Reklamator emails the link to the customer, the quote can no longer be edited, and the customer link starts accepting a decision (see [Sending to the customer](#sending-to-the-customer)).
4. When the customer takes a long time to answer, you click **Remind** (see [Reminders](#reminders)).
5. On the quote page the customer picks a variant and accepts or declines the quote. If the customer decided over the phone, an operator records the decision in the panel.

| Status | Meaning |
|---|---|
| **Draft** | The quote is being prepared — it can be edited; the customer can view it but cannot decide |
| **Sent** | Waiting for the customer's decision |
| **Accepted** | The customer accepted the chosen variant |
| **Rejected** | The customer declined the quote (all variants) |
| **Expired** | A sent quote whose link no longer works — see [Validity and expiry](#validity-and-expiry) |

The decision is final — an accepted or rejected quote cannot be changed.

## Quotes on an issue

The **Quotes** section on the issue details page lists all quotes of the issue: name, status, gross amount (with several variants — the range from the cheapest to the most expensive; after acceptance — the amount of the accepted variant) and the number of variants. The **New quote** button creates a draft and opens the quote screen.

The quote screen has a separate tab for each quote of the issue, plus a **+ New quote** tab.

### Editing a draft

In a draft (permission **Edit quotes**) you set:

- **Quote name** — shown to the customer as the page title (if empty, the customer sees *Repair quote*),
- **Valid until** — the quote's validity date, shown to the customer as *Quote valid until …*.

Changes are saved with **Save changes**.

### Variants

A quote can have several variants — the customer picks one of them. Each variant has a **Variant name** (if empty: *Variant 1*, *Variant 2*…), its own items and its own totals.

- **Add variant** — a new, empty variant,
- **Copy as variant** — a copy of the current variant with its items, to adjust,
- **Delete variant** — a quote needs at least one variant.

### Items

| Column | Description |
|---|---|
| **Name** | Item name |
| **Kind** | **Labor**, **Part**, **Travel**, **Other** |
| **Quantity**, **Unit** | Quantity and unit |
| **Net price** | Net unit price |
| **VAT %** | VAT rate |
| **Own cost** | What one unit costs you — the customer never sees it; the column is visible only with the cost permission |

The **Pick a part from the catalogue** / **Type manually** switch lets you add an item from the [parts catalog](/service/parts) — the name, price, VAT and cost are filled in automatically, and the item gets the *catalogue part* mark. A quote does not reserve parts and does not check warehouse stock.

Below the items you see the variant totals: **Net**, **VAT**, **Gross**, and with the cost permission also **Internal cost** and **Margin**.

{% callout type="warning" title="Costs and missing permission" %}
If a variant has saved own costs, a person without the **View costs and margin** permission cannot save changes to that variant — they see *"This variant has saved own costs. Saving without the cost permission would remove them — ask someone who has that permission."*
{% /callout %}

### Preview and customer link

The customer link exists from the moment the quote is created — also in a draft. The **Customer link** section offers:

- **Customer preview** — what the customer will see (every variant to choose from, in the saved state),
- **Copy customer link** — copies the address to the clipboard,
- **Open** — opens the customer page in a new tab.

A draft opened by the customer shows *"This is a preview - the quote has not been sent yet, so no decision can be made."*

## Sending to the customer

**Send to customer** (permission **Send quotes to the customer**) opens the **Send quote** dialog:

- **Send a message to the customer** — a switch, on by default,
- **Recipients** — the email addresses of the customer's notification contacts or, if there are none, the customer's email address. You can change them; separate multiple addresses with commas,
- **Message preview** — the subject and body the customer will receive.

**Send** changes the status to **Sent** and emails the quote link. The message goes out through the issue type's email channel (if none is set — the account's default channel), just like emails from business rules. The message language is the customer's language or, if the customer has no language set, the language of the user who sends it.

With the switch off, the button reads **Mark as sent** — the quote only changes its status and no email is sent. This is useful when you pass the link to the customer yourself (e.g. **Copy customer link**).

A quote without items will not be sent (*"Add items before sending"*). After sending, the quote can no longer be edited. In both cases the **Quote sent** event fires in [business rules](#business-rules).

### Message content

You need neither a rule nor a template to send a quote. If you configure nothing, Reklamator sends a built-in text (in 6 languages) with the quote name, the issue number and the quote link.

You set your own content per issue type in **System → Issue types → Edit Type**, in the **Service features** section (visible once **Quotes** is enabled):

| Setting | When it is used |
|---|---|
| **Quote message** | When sending a quote |
| **Quote reminder** | When sending a reminder (see [Reminders](#reminders)) |

Each setting is an email template picker (empty: **Default text**) plus a subject for each language (**Subject (empty = default)**). Empty fields = default text. In your own [template](/config/templates), use the `{{ issue_quote_url }}` (quote link) and `{{ quote_name }}` (quote name) and `{{ quote_valid_until }}` (validity date) variables — see [Template variables](#template-variables).

{% callout type="warning" title="A rule that already sends the quote" %}
If the issue type has an active rule on the **Quote sent** event (for reminders: **Quote reminder**) with a **Sending email** action to the customer, the dialog turns the message off by default and shows a notice that a rule may already send the quote — otherwise the customer would get two emails. Rule conditions are not evaluated. Rules that email only staff or custom addresses do not count.

If you prefer sending from the dialog, deactivate that rule or remove its send-to-customer action.
{% /callout %}

{% callout title="Links with a suggested decision" %}
You can append `?d=accept` or `?d=reject` to the address, e.g. two buttons in an email: `{{ issue_quote_url }}?d=accept` and `{{ issue_quote_url }}?d=reject`. The page opens with that decision preselected, but **saves it only after "Confirm decision" is clicked**. Merely opening the link — including by an email scanner that checks links in messages — accepts nothing.
{% /callout %}

## Reminders

On a sent quote (on the quote screen and in the [quote list](#quote-list)), the **Remind** button (permission **Send quotes to the customer**) opens the same dialog, titled **Quote reminder**:

- **Remind** — emails the customer a reminder with the link (content: the **Quote reminder** setting on the issue type, or the default text),
- with the switch off, **Record reminder** — records the reminder without sending an email, e.g. after a phone call with the customer.

Only sent quotes can be reminded. When the quote link has expired, an email reminder is not possible — use **Extend validity** first. Recording a reminder without an email works even after expiry.

Each reminder:

- adds an issue history entry *Quote reminder sent: …*,
- updates the quote's **Last reminder** field (date and number of reminders),
- triggers the **Quote reminder** event in [business rules](#business-rules).

## Quote list

The **Quotes** screen in the main menu (permission **View quotes**) shows the quotes of the whole account from issues you can see, for issue types with **Quotes** enabled. By default it shows the **Sent** and **Expired** statuses, longest waiting first — the list of quotes the customer has not answered yet.

Filters:

- the **Draft**, **Sent**, **Expired**, **Accepted**, **Rejected** statuses — you can select several,
- search — quote number and name, issue number, customer,
- **Waiting longer than (days)**,
- **Issue type**,
- **Sent from – to**.

| Column | Description |
|---|---|
| **Quote** | Link to the quote |
| **Issue** | Link to the issue |
| **Customer** | Customer name and phone — on a phone, tapping the number starts a call |
| **Status** | Quote status |
| **Amount** | Range of the variants' amounts; for an accepted quote — the amount of the accepted variant |
| **Sent** | Sending date |
| **Waiting** | Days since sending — only for sent quotes |
| **Valid until** | Validity date |
| **Reminder** | Last reminder |
| **Actions** | **Remind** and **Extend validity** |

Click a column header to sort the list. For an expired quote, **Remind** is disabled (*Extend the validity first*). The actions require the **Send quotes to the customer** permission. The list does not show own costs or margin.

## Customer quote page

The customer opens the link without logging in. The page shows:

- the quote name and validity date (*Quote valid until …*),
- every variant with its items (name, quantity, net price), net total, VAT and gross amount — without own costs,
- with several variants, the prompt *"Choose the option you accept."* and a variant choice.

The decision:

1. The customer picks **I accept** or **I decline** (with several variants: **Accept the selected option** / **Accept none of them**).
2. When declining, they can give a **Rejection reason**: *Too expensive*, *Repairing elsewhere*, *Dropping the repair*, *Other reason*.
3. Optionally they enter their **Full name** and a **Comment**.
4. They click **Confirm decision**.

After the decision the page shows a thank-you message (*"Thank you, we recorded your choice: …"* or *"Thank you, the quote has been declined."*). Declining applies to the whole quote, not to a single variant.

| Message on the page | When |
|---|---|
| A decision on this quote has already been made. | The customer (or an operator) decided earlier |
| The quote link has expired. Please contact the service team. | The link's deadline has passed |
| Quote not found. | Wrong link or the quote was deleted |

### Status page

On the [status page](/config/status-page) you can enable **Show the link to a quote awaiting decision** (in the **Service data** section). After verifying with the issue number and e-mail or phone, the customer sees **Quote awaiting your decision** with an **Open quote** button.

## Deciding on the customer's behalf

When the customer decided by phone or in person, a person with the **Accept or reject a quote on the customer's behalf** permission clicks **Record customer decision** on the sent quote and enters:

- **Customer accepts** or **Customer rejects**,
- **Variant accepted by the customer** (when accepting),
- **Rejection reason** (when rejecting),
- **Person deciding on the customer side** and **Customer comment**.

The decision is final. An operator can record it even after the link has expired. The quote's **Customer decision** section shows the **Decision date**, **Decision channel** (*Customer via link* or *Recorded in panel by …* with the operator's name), **Decision made by**, **Rejection reason** and **Customer comment**.

## Validity and expiry

The link to a sent quote works until the **Valid until** date plus 14 days. If the quote has no validity date, the link works for 14 days after sending. The link's deadline is shown next to the link (*Valid until …* or *Link expired on …*).

After that deadline the quote has the **Expired** status and the customer sees the link-expired message. The **Extend validity** button (permission **Send quotes to the customer**) sets a new validity date (no earlier than today) — the link stays the same and works again, until the new date plus 14 days.

Expiry does not trigger any business rule event.

## Deleting a quote

**Delete quote** (permission **Delete quotes**) deletes the quote in any status. The customer link stops working. The issue history keeps an entry about the deletion.

## Issue history

The issue history (filter **Quotes**) records: creating, sending, reminding, accepting (with the variant and decision channel), rejecting (with the decision channel and reason), extending validity and deleting a quote. Draft edits are not recorded.

## Business rules

In [business rules](/config/business-rules), the **Service** event group offers:

| Event | When |
|---|---|
| **Quote sent** | After the quote is sent — **Send** or **Mark as sent** |
| **Quote reminder** | After **Remind** or **Record reminder** |
| **Quote accepted** | After acceptance — by the customer on the page or by an operator in the panel |
| **Quote rejected** | After rejection — by the customer or by an operator |

The **Quote - rejection reason** condition lets you tell rejections apart — e.g. for *Too expensive*, send an offer for a cheaper repair. Outside quote events the condition has an empty value.

You do not need a rule just to send the quote — the send dialog does that (see [Sending to the customer](#sending-to-the-customer)). Add a rule on **Quote sent** or **Quote reminder** when you want something more, e.g. sending an SMS or creating a task.

Example rules: **Quote accepted** → the **Create a service job** action (a repair job to schedule); **Quote rejected** → the **Sending email** action with information about collecting the equipment.

## Template variables

The **Quote** section in [templates](/config/templates):

| Variable | Description |
|---|---|
| `{{ issue_quote_url }}` | Customer quote link |
| `{{ quote_name }}` | Quote name |
| `{{ quote_variant }}` | Accepted variant |
| `{{ quote_comment }}` | Customer comment on the decision |
| `{{ quote_reject_reason }}` | Rejection reason |
| `{{ quote_signer }}` | Person deciding |
| `{{ quote_decided_via }}` | Decision channel |

- In a rule on a quote event, `{{ issue_quote_url }}` points to the quote the event is about. In other rules and templates — to the most recently sent quote whose link still works. If no quote has been sent, the variable is empty.
- In the quote message and the reminder (issue type settings), `{{ issue_quote_url }}` and `{{ quote_name }}` refer to the quote being sent, and `{{ quote_valid_until }}` is its validity date (available only there). The default text gives the customer the quote name, issue number, validity date and link.
- The other variables are filled in only in rules on quote events; elsewhere they are empty.

## Quote page appearance

The appearance of the page the customer sees is set separately for each issue type: **System → Issue types → [type] → Quote page**.

| Section | Field | Description |
|---|---|---|
| **Page header** | — | HTML shown above the quote — logo, company name, a short text |
| **Page title (meta title)** | — | Browser tab title |
| **Appearance** | **Font**, **Width**, **Favicon (URL)** | Page font and width, browser tab icon |
| **CSS** | **Custom stylesheet** | When filled in, replaces the default page look |
| | **Additional styles** | Styles added on top of the page look |

For security reasons, scripts, frames (`iframe`) and forms, among others, are removed from the header HTML.

The **Customer preview** on the quote screen shows the quote with the appearance set for the issue type.

---

## FAQ

### Does clicking "Send to customer" send an email?
Yes, once you confirm in the **Send quote** dialog. Reklamator emails the link itself — no rule or template is needed. If you only want to change the status, turn off **Send a message to the customer** and click **Mark as sent**.

### I have a rule that sends the quote. Will the customer get two emails?
Not unless you turn the message on in the dialog. When an active rule on **Quote sent** emails the customer, the dialog turns the message off by default and shows a notice. You can turn it on manually — the customer then gets both emails.

### How do I catch quotes the customer has not answered?
Open **Quotes** in the main menu. By default the list shows sent and expired quotes, longest waiting first. The **Waiting longer than (days)** filter narrows it to overdue ones, and **Remind** emails the customer a reminder or records a phone call.

### Why can't I send a reminder for a quote?
Only sent quotes can be reminded. When the link has expired, an email reminder requires **Extend validity** first; **Record reminder** on its own always works.

### Can an email scanner accept a quote by itself?
No. Opening the link — even with `?d=accept` — only preselects the choice. The decision is saved only after **Confirm decision** is clicked.

### Can I correct a sent quote?
No — a sent quote cannot be edited. Create a new quote (**New quote**) and send it again; you can delete the old one.

### Will the customer see our own cost and margin?
No. Own cost and margin are visible only in the panel, to people with the **View costs and margin** permission.

### The customer accepted over the phone — what do I do?
On the sent quote, click **Record customer decision**. The history shows that the decision was recorded in the panel and by whom.

### The link has expired, but the customer still wants to decide. What next?
Click **Extend validity** and set a new date — the link stays the same and works again. You can also record the decision on the customer's behalf, which works even after the link has expired.

### Does a quote reserve parts in the warehouse?
No. A quote uses the parts catalog only to fill in the price and cost.

### Do the items of an accepted quote go onto the job automatically?
No. Acceptance can create a repair job through a business rule (the **Create a service job** action), but you enter the items — parts and labor — on the job by hand. The quote stays on the issue as a frozen estimate.
