---
title: "Usage"
weight: 30
description: "SmartInterventions user guide: creating interventions, using the smartphone app, signatures, photos and PDF report generation."
source_hash: "441f75c7"
---

# Usage

## Creating an intervention in Dolibarr

SmartInterventions is built on Dolibarr's native intervention cards. To create an intervention:

1. Go to the **CRM > SmartInterventions** menu
2. Create a new intervention card by filling in the third party, the description and the fields added by the module

### SmartInterventions-specific fields

When creating or editing an intervention, several additional fields are available:

| Field | Description |
|-------|-------------|
| Planned date for the intervention | Planned date and time. This date is used to record the intervention in the technician's agenda. |
| Planned duration (in minutes) | Estimated duration. Leave empty or at zero to not block an agenda slot. |
| Intervention type | Type linked to an imported data schema. Allows associating a custom form with the intervention. |
| Event type | Type of event created on the agenda when assigning to a technician. |
| Urgent intervention | Check this box so the intervention appears in the emergencies list on smartphones. |
| Intervention address | Link to a Dolibarr contact. Useful if the intervention address differs from the third party's main address. |
| Advanced status | Detailed status of the intervention among the 11 available statuses. |
| Automatically send the report to the customer | Check to have the PDF sent to the customer when the intervention is closed. |

## Advanced intervention statuses

SmartInterventions introduces a detailed lifecycle with 11 statuses:

| Code | Status | Description |
|------|------|-------------|
| 0 | Draft | Intervention being written |
| 1 | Validated | Intervention validated, ready to be scheduled |
| 2 | Scheduled | Date and technician assigned |
| 3 | Waiting | Intervention on hold (waiting for parts, availability, etc.) |
| 4 | In progress | The technician is working on the intervention |
| 5 | To be completed | Intervention performed but requiring additions |
| 6 | Done | Intervention performed and completed |
| 7 | Signed | The customer has signed the report |
| 8 | Invoiced | The intervention has been invoiced |
| 9 | Cancelled | Intervention cancelled |
| 10 | Archived | Intervention archived |

## Smartphone app

### Installing on the home screen (PWA)

The SmartInterventions app is a Progressive Web App (PWA). It can be installed on your smartphone's home screen to work like a native app:

1. Open the app's address in your smartphone's browser
2. On **Android** (Chrome): tap the menu (three dots) then **Install app** or **Add to home screen**
3. On **iOS** (Safari): tap the share icon then **Add to Home Screen**

Once installed, the app opens full screen without the browser bar, like a native app.

### Login

1. From the **Smartphones** tab of the configuration, scan the QR Code with your smartphone or enter the displayed address
2. Log in with your Dolibarr credentials (authentication via SmartAuth)

### Device identification

On first login on a device, right after the login and password, the app asks which device you are using:

- **If devices are already registered**: tap yours in the list, or **+ New device** to register another one
- **For a new device**: enter a descriptive name (for example "Jean's phone") and pick its type (Auto-detect, Smartphone, Tablet or Desktop), which sets the interface of the app

This identification allows managing several devices per technician.

### Home page

![Home page of the smartphone app with shortcut counters to the intervention lists](screenshots/accueil-smartphone.webp)

After login, the technician accesses the home page which displays a welcome message and clickable **shortcut counters**. Each counter opens the corresponding list on the interventions page:

| Shortcut | Description |
|----------|-------------|
| To do today | Your interventions scheduled for today |
| This week | Your interventions of the week |
| Urgent | Interventions marked urgent. Any technician can assign them to themselves. |
| Unassigned | Interventions waiting to be assigned (self-assignment possible). |
| Unassigned urgent | Urgent interventions still unassigned. |

The last two shortcuts are only displayed for profiles allowed to see unassigned interventions.

The bottom bar has **three fixed entries** (not configurable): Home, Interventions and Customers.

### Synchronization

On smartphone, synchronization is triggered by a **pull-down gesture** (pull-to-refresh) from the home page, or manually from Settings. (On tablet and desktop, a synchronization button is available.) It updates, step by step:

- The app configuration (and permissions)
- The product catalog
- Your customers
- Your interventions
- Urgent interventions
- Unassigned interventions
- Unassigned urgent interventions

Each step displays a progress indicator. A green checkmark confirms success, a red cross signals a failure.

### Calendar view

![App calendar view: monthly strip of days with a colored dot indicating the number of interventions per day, and the filtered list below](screenshots/vue-calendrier.webp)

The app offers a calendar view accessible from the interventions page (calendar icon at the top left). This view displays:

- A horizontal navigation strip with the days of the current month
- Red dots indicating the number of interventions per day
- Interventions grouped by date

You can:

- **Navigate between months** with the left/right arrows or the month/year dropdowns
- **Select a day** to filter the interventions of that date
- **Select a date range** by clicking a first day then a second

The calendar view can be enabled by default in the app settings (see [Mobile app settings](/smartinterventions/utilisation#parametres-application-mobile)).

### Search

On the interventions page, the search icon (magnifying glass at the top right) opens a search bar. The search filters in real time on the intervention reference, label, date and customer name.

### Viewing an intervention

By selecting an intervention in a list, the technician accesses the detail:

- Third party information and address
- Planned date and time, estimated duration
- Mission description
- History of intervention lines
- Extended fields (extrafields) in read-only or input mode
- Data schema form (if an intervention type is associated)

### Performing an intervention

![Top of the report form on smartphone: history of previous reports, mission description, actual duration and report input area](screenshots/formulaire-compte-rendu.webp)

1. Enter the report in the dedicated field
2. Indicate the actual duration
3. Take photos if necessary
4. Fill in the extended fields and schema forms
5. Confirm the submission

### Drafts and automatic saving

When you fill in a report, the app automatically saves your input as a draft. If you leave the form without submitting the report, a window offers to save the draft.

Drafts are kept locally on the device. You can resume the input later by returning to the relevant intervention card.

In case of loss of connection at submission time, the draft is automatically preserved for later sending.

### Status choice on submission

When the form opens, the intervention automatically moves to **In progress** status. On submission, two actions are offered:

- **Save** -- The intervention moves to **To be completed** status: it is performed but you can come back to it.
- **Close and sign** -- The intervention moves to **Done** status after capturing the signatures (technician then customer).

### Taking photos

The app allows taking photos directly from the smartphone. Photos are linked to the intervention card and appear in the generated PDF report.

The Dossier PDF model only embeds the photos recorded for the intervention, by the app or through the Attached files tab of the card. An image copied by hand into the intervention folder on the server does not show up: attach it from the card instead.

Photo resizing is configurable (see [Configuration > Smartphones tab](/smartinterventions/configuration)).

#### Offering photo capture in the app

For the app to display a **Take a photo** icon in the report form, at least one photo field must be declared on intervention cards. A photo field is a Dolibarr extrafield attached to the `fichinter` object whose name starts with the `smartphoto_` prefix. This prefix is recognized by SmartInterventions and the mobile app automatically turns it into a capture button.

##### Photo fields created by default

Upon module activation, SmartInterventions creates three ready-to-use photo fields:

| Technical name | Label | Position |
|---------------|-------|----------|
| `smartphoto_avant` | Photo before intervention | 200 |
| `smartphoto_travaux` | Photo during intervention | 201 |
| `smartphoto_apres` | Photo after intervention | 202 |

These three fields are also automatically added to the **Read/write fields** list (setting `SMARTINTERVENTION_ADD_EXTRAFIELDS_RW`) when it is empty, so they are visible from the mobile app without additional configuration.

##### Adding other photo fields

To offer other capture points (for example a photo of a nameplate or serial number):

1. Go to **Home > Setup > Modules > Interventions > Additional attributes**
2. Click **New attribute** and fill in:
   - **Label**: what will be displayed on the smartphone (for example "Nameplate photo")
   - **Code**: a code starting with `smartphoto_` (for example `smartphoto_plaque`)
   - **Type**: `String (varchar)` with a size of 255
3. Save the field
4. Go to **SmartInterventions module configuration > Smartphones tab** and add the field code (without the `options_` prefix) to the **Extra read/write fields** list (comma-separated)
5. Technicians must synchronize from the app for the new field to appear

The display order in the app follows the position defined on the extrafield.

##### Other media types

The same mechanism applies to other media:

| Prefix | Media type |
|--------|------------|
| `smartphoto_` | Photos |
| `smartaudio_` | Audio recordings |
| `smartvideo_` | Videos |
| `smartfile_` | Generic files |
| `smartsignature_` | Signatures |

### Self-assignment

From the **Unassigned** or **Urgent** lists, the technician can assign an intervention to themselves by confirming the action. The intervention then appears in their personal list.

### Adding products, parts and consumables to the intervention

When the administrator has configured at least one accessible product category (see [Configuration > Products/Services tab](/smartinterventions/configuration#config-produits-services)), a **Parts and supplies** section appears in the intervention form on the mobile app.

Described in detail in [Mobile app](/smartinterventions/application-mobile) and [Parts and supplies](/smartinterventions/pieces-fournitures), this section allows entering the products and parts consumed or installed: catalog search, barcode scan, line role (consumable, new equipment, replacement part, removed part only), quantity, batch or serial number, all fully working offline.

The catalog is cached locally on the device to work offline. It synchronizes on first use and whenever a new version is detected server-side; a button also allows refreshing it manually.

> **Section visibility**: it only appears if the administrator has selected at least one product category in the configuration. If you do not see it, ask your administrator to configure the catalog.

### Annotating a photo

Any photo taken from the mobile app can receive **annotations**: markers placed at a precise spot on the image, to show what the report text does not.

Under each photo is an **Annotate** button. It displays the number of markers already placed, and opens the photo full screen. Then tap an area of the image to place a marker; you can then move, edit or delete it. Annotations are optional: a photo without a marker remains a normal photo.

Two types of markers exist:

- **Note**: a free comment attached to a point on the photo. Available everywhere.
- **Product**: a catalog reference, with a quantity. Reserved for intervention card photos, because a Product marker feeds the list of consumed Products/Services (see below).

Where is the Annotate button available?

| Location | Annotations |
|----------|-------------|
| Intervention card photos | Note and Product |
| Photo of a part or consumable | Note |
| Photos of a fleet equipment | Note |
| Customer photo album | View only |

The customer photo album gathers the photos of all their interventions, including closed ones: the markers are **viewable but not editable** there. To edit them, open the corresponding intervention card.

Products annotated on photos are automatically added to the intervention's global list of consumed Products/Services (and therefore also to the stock decrement if it is enabled). You do not need to enter them a second time in the main section.

> **Who sees the annotations?** Markers follow the permissions of the object the photo is attached to: on an intervention, all technicians who have access to it see them, even if the photo was taken by a colleague. On an equipment, the fleet read permission is enough to view them, and write permission to place them.

## Automatic stock decrement

When the administrator has enabled the **Decrement stock** option to "When moving to status Done" (see [Configuration > Stock section](/smartinterventions/configuration#config-section-stock)), the stock of products consumed on an intervention is automatically removed from Dolibarr when the intervention moves to **Done** status.

The mechanism:

- The warehouse used is primarily the one defined on the technician's user card (field "Technician warehouse (SmartInterventions)"). By default, the default warehouse configured in the Products/Services tab is used.
- If neither is defined, the decrement is ignored and an alert email is sent to the address configured in the Notifications tab (if filled in).
- The operation is **idempotent**: even if an intervention passes through the "Done" status several times (for example after a correction), the stock movement is applied only once.
- The stock movement appears in the product's Dolibarr history as a standard movement, with the intervention reference as label.

> **Special case of services**: if a Product/Service of type "Service" is added to the intervention, it is not decremented from stock (Dolibarr does not manage stock for services). Only products are removed from stock.

## Invoicing an intervention to the customer

When you generate a customer invoice from a SmartInterventions intervention, the consumed Products/Services (whether added via the global list or via an annotation on a photo) are **automatically transferred as invoice lines** with their quantity, selling price, discount and VAT. A part already invoiced is never taken again: a new invoice created from the same intervention only contains the parts not invoiced yet.

The standard Dolibarr **Create invoice** button on the intervention card is still used: no additional manipulation is needed. Dolibarr's native cloning does not by default pick up the product, price and VAT of intervention lines (it only takes the description and duration); SmartInterventions intercepts this step to enrich the invoice lines from the attached products.

> **Stock on invoicing option**: if the administrator chose "Upon customer invoice validation" in the [Stock section](/smartinterventions/configuration#config-section-stock), the stock decrement triggers when you validate the invoice (and no longer when the intervention moves to Done status).

## "Consumed Products/Services" dashboard

SmartInterventions provides a tracking page accessible from the menu **CRM > SmartInterventions > Consumed Products/Services**. This page aggregates, over a given period, all products used by technicians on their interventions.

Available filters:

- **Period**: start date and end date (intervention taken into account by its intervention date).
- **Technician**: list of active workers.
- **Supplier**: filter by each product's preferred supplier (configured on the Dolibarr product card).
- **Product category**: restricts the selection to the categories allowed by the administrator.

The table groups lines by product and shows the total quantity consumed, the supplier purchase price and the total excluding tax per product. Interventions already linked to a supplier order are automatically hidden from the list to avoid double orders.

### Generating a supplier order

From the dashboard, check the lines you want to restock then click **Generate order**. SmartInterventions:

1. Groups the selected products by preferred supplier.
2. Creates a draft Dolibarr supplier order per supplier, with the known purchase price for each line.
3. Links each order to the contributing interventions via the standard Dolibarr linking mechanism (`element_element`). These interventions then disappear from the table to avoid a second order.

The supplier order page then opens so you can adjust before validation and sending to the supplier.

> **Required permissions**: read on SmartInterventions Products/Services, plus the standard Dolibarr permission "Supplier orders > Create" for generating the PO.

## Signatures

SmartInterventions manages **two distinct signatures** per intervention: that of the technician and that of the customer. They are stored in separate database columns and displayed side by side in the generated PDFs.

### Signature in the form (default mode)

![Two-step signature popup: first the technician's signature, then the customer's, on the smartphone screen](screenshots/signature-popup.webp)

When the technician taps **Close and sign**, a signature popup opens in **two successive steps**: first the **Technician signature**, then the **Customer signature**. The technician signs, hands the device to the customer who signs in turn, and the report is then submitted. Both signatures are persisted in the `si_sign_tech` and `si_sign_customer` columns, then painted side by side in the PDF.

This mode works online as well as offline and **does not depend** on the "Enable intervention card signature" options nor on the intervention's status -- capturing both signatures is part of closing.

### Online signature after validation

For situations where the customer is not present when the report is written (remote intervention, signature sent back by email later), a complementary mode is available. When the **Enable intervention card signature** option is checked and the intervention moves to **Done** status, a popup is displayed after form submission with two possibilities:

- Have the customer sign immediately on the same device (pseudo-signature)
- Display a link that the technician can send to the customer so they can sign from their own browser

Depending on the configuration:

- Online signature is only offered for validated interventions (by default)
- The **Request signature regardless of status** option extends this offer to all statuses

The signature collected by this mode is also stored in `si_sign_customer`, the PDF is then regenerated to include the image.

### UptoSign integration

If the complementary UptoSign module is installed and the option enabled, a link to the UptoSign electronic signature is automatically displayed after the intervention form is submitted.

<!-- Anchor referenced from the "Calendar view" section of this page -->
<a id="parametres-application-mobile"></a>
## Mobile app settings

The mobile app has a settings page accessible from the menu. These settings are specific to each device and each user.

### Language and formats

| Setting | Description |
|---------|-------------|
| Language | Language of the app interface |

### Interface

| Setting | Description |
|---------|-------------|
| Dark mode | Enables the dark theme for better visual comfort in low light conditions |
| Header hidden on scroll | Hides the title bar when you scroll a list |
| Navigation bar hidden on scroll | Hides the bottom icon bar when you scroll a list |

### Interventions

| Setting | Description |
|---------|-------------|
| Calendar mode (default) | Enables the calendar view by default on the interventions page |
| Intervention display (default) | Intervention statuses to display on the home page (multiple selection) |

### Storage

This section displays the users saved on this device. You can remove a saved user by clicking on their name. Since logging out erases the account data, only the signed-in account is normally listed.

### Reset and logout

- **Reset**: restores all settings to their default values
- **Logout**: logs you out of the app and erases your account data from the device

What is erased, what is kept, and work not sent yet: see [Mobile app (PWA)](/smartinterventions/application-mobile).

## Generating PDF documents

SmartInterventions offers two PDF document models:

### Basic model

Standard intervention card with all the intervention's photos included.

### Complete report model

Multipage technical report including:

- **Cover page** with customizable background, reference and intervention details
- **Content pages** with customizable background, detail of each action performed (date, duration, description)
- **Photos** of the intervention, automatically integrated and numbered
- **Annexes**: PDF attachments of the intervention (filtering by keyword possible)

To enable this model, go to the **PDF** tab of the module configuration, then select it in **Home > Setup > Modules > Interventions > Document models**.

### Visual editor model (schemalayout)

This model generates a PDF from a layout designed in the visual editor (see [Configuration > Visual editor](/smartinterventions/configuration)). The intervention form fields are automatically injected into the locations defined by the layout. This model is particularly suited to interventions using custom data schemas.

### Fleet tour model (smartparc)

This model produces the report of an intervention that checked several
equipment of the same fleet, for example a fire extinguisher check tour. It groups the checks by equipment type, lays out each check with its schema form, ends with a summary table (reference, label, result) and carries a single technician signature and a single customer signature for the whole tour.

An intervention with no equipment check cannot be printed with
this model: choose the basic model or the complete report instead.

To enable it, select **smartparc** in **Home > Setup >
Modules > Interventions > Document models**.

### Layout embedded in a schema

Each equipment check of the Fleet tour model is laid out according to
the `pdf_layout` block of the equipment schema (standard
[schemaCapRel](https://schemas.cap-rel.fr/) v1.1).

When importing a schema via **Configuration > Editor** that does not contain a `pdf_layout` block, SmartInterventions automatically generates one (version 1.1) from the list of extrafields: the `smartphoto_*` go into a gallery, booleans into a checklist, `text`/`html` in full width, signatures in a dedicated block and the rest in two columns. You can then replace this block with a custom layout in the schema's JSON if needed.

## Automatic sending of the report

When the option is enabled (globally or on a specific intervention), the report PDF is sent by email to the customer when the intervention is closed on the app. The email template used is the one configured in the Notifications tab.
