# Document Management

> Create quotes, proposals and contracts in Advanzo CRM with templates, product tables and placeholders. Send them, track views, collect e-signatures, get PDFs.

[Video](https://www.advanzo.ch/docs/assets/video/docs-en.mp4)

Create a quote from the deal, send it, and watch it get signed.

## Create a Document

1. **Create the document.** Open Documents and click Create Document. Choose brand, type and owner, add products and write the content.
2. **Add the signers.** In the Signature section, keep Use e-signature selected and click Add new signer. Enter the full name and email address.
3. **Send it.** In the Send section the signers are already selected as recipients. Choose the email account, check the subject and click Send.
4. **The client signs.** On the public page the signer clicks Sign, confirms the email address, types the full name and signs.

- Log in to Advanzo CRM and click the **Documents** menu item.
- On the right, click **Create Document**.
- In the **Details** section, choose the [brand](https://www.advanzo.ch/docs/sections/settings/brands), [type](https://www.advanzo.ch/docs/sections/settings/documents#document-types) and owner, and set a title for the document.
- In the **Products** section, add the products related to the document.
- In the **Signature** section, choose whether this document requires a signature and add signers if needed.
- In the **Content** section, add the document content.
- Click **Save**.

> **Info:** When a document is created and the selected owner is different from the creator, Advanzo CRM automatically sends a notification to the document owner. This uses the **User Assigned To Document** [mail template](https://www.advanzo.ch/docs/sections/mail-templates).

## Edit a Document

- Log in to Advanzo CRM and click the **Documents** menu item.
- In the table, **click the document title**.
- The form opens. Update the fields and data you want to change.
- Click **Save**.

## Adding Products to Documents

### How to Add Products

- In Advanzo CRM, you can add as many products as you need in the **Products** section of a document.
- When you add products, the document's total amount field updates automatically.
- You can use this total amount for filtering, display it in the documents table, and more.

On this screen

- Open the **Products** section of the document.
- Choose a tax mode: **Tax Exclusive**, **Tax Inclusive** or **No Tax**.
- Each line has **Product**, **Qty**, **Unit Price**, **Discount** and **Amount** columns.
- Click **+ Insert new line** to add another product.
- The **Sub Total** and **Total** at the bottom update automatically.

### Displaying Products in Document Content

- The products you add can be shown directly in the document content.
- This is useful, for example, if you're creating a proposal and want to include a list of all products in the document.
- These products are visible both in the document's public view and in the PDF version.

### Embedding a Products Table

- To have Advanzo CRM automatically insert a products table into your document:

    1. Open the document in the editor.
    2. Add the **Products** section where you want the table to appear.

Steps

1. In the content editor, click the **+** (add block) button where you want the table to appear.
2. Select **Products** from the block menu.

[Learn more](https://www.advanzo.ch/docs/sections/products#using-products) about using products.

## Collecting E-Signatures in Documents

- In Advanzo CRM, you can gather multiple e-signatures for each document.
- The system records the signer's IP address, signing date and time, email, and full name.

### Document Status and Signatures

- **Single Signer**: If there's only one signer, the document is marked as **Accepted** once signed.
- **Multiple Signers**: A document with several signers is marked as Accepted only after the last signer has signed.

### Notifications

- Advanzo CRM sends notifications to the document owner each time a signer signs, keeping them updated.

### How to Add Signers

1. While creating or editing a document, go to the **Signature** section in the top navigation bar.
2. Make sure **Use e-signature** is selected.
3. Click **Add new signer**.
4. Enter the signer's full name and email address.
5. Click **Save**.

### How to Remove Signers

1. In the **Signature** section, find the signer you want to remove.
2. Click the **X** icon next to their name.
3. Click **Save**.

> **Warning:** Removing signers from an **Accepted** document changes its status to **Draft**.

### How to Sign a Document

The signer can sign the document via its public URL.

#### Steps for the Signer

1. Click the **Sign** button at the top right of the document's public page.
2. Enter the email address used by the sales rep when adding the signer (for confirmation).
3. Click **Confirm**.
4. In the **To accept, type your name below** field, enter the full name.
5. Click **Sign**.

> **Info:** The signer needs to confirm their email address before signing.

### After Signing

- When a document is signed, the document owner gets a bell notification in Advanzo CRM.
- A **Signer Signed Document** email is sent using the corresponding [mail template](https://www.advanzo.ch/docs/sections/mail-templates).

## Accepting a Document

If you decide that a **document does not need a signature**, customers can accept the document without signing it. A document that does require signatures is marked as accepted automatically once all the required signatures are collected.

- Once a document is accepted, its status updates to **Accepted** automatically.
- The person who created the document gets a **bell notification**.
- A **Document Accepted** [email notification](https://www.advanzo.ch/docs/sections/mail-templates) is sent out.

Use this option for documents that do not need a digital signature. It suits many kinds of document and makes acceptance easier for many customers.

> **Info:** Please note: Once a document is marked as accepted, it **cannot be changed back**. If needed, you can only delete it.

On this screen

On the document's public page, the customer clicks the **Accept** button at the top right, next to **Download PDF**.

## Generating a Document PDF

You can create a PDF from the content you add in the **Content** tab when you create or edit a document.

- To create a PDF, click the PDF button at the top right while editing.
- You can either view the PDF in your browser or download it to your computer.

- **Customers can download the PDF** from the public HTML view of the document.
- The download button is at the top right of the navigation bar.

> **Info:** The PDF might not look exactly like the HTML version. There might be some small differences.

### Choosing the Right Font for Your PDF

- For each [brand](https://www.advanzo.ch/docs/sections/settings/brands) you set up, you can pick a default font for your PDFs.
- This font will be used for all text unless you choose a different one in the editor.
- To use a font other than your brand's default, change it in the editor. Make sure the font you choose supports any special characters you use.

> **Warning:** Important
> 
> Select the right font. If the font does not support certain characters you use, they are not displayed correctly in the PDF. **DejaVu Sans** is a good choice for many characters.

On this screen

1. In the editor toolbar, open the **font family** selector (the *a* icon).
2. Pick a font from the list: **None**, **Arial**, **Courier**, **Georgia**, **Monospace**, **Sans Serif** or **Serif**.

## Using Placeholders in Documents

### What are Placeholders?

Placeholders are special tags in your document or document template that are filled in automatically with real data when you view the document in HTML or PDF format.

### When to Use Placeholders

- You can add placeholders to any part of your document.
- They are most commonly used in document templates.

### Types of Placeholders

- **Branding**: Add placeholders related to your [brand settings](https://www.advanzo.ch/docs/sections/settings/brands).
- **Associations**: Use placeholders for the first linked deal, company, or contact.
- **General**: Include general information such as the company name.

### How to Add Placeholders

1. In the document editor, click where you want to add a placeholder or select text to replace.
2. Click the *code* icon in the top toolbar of the editor.
3. Choose the placeholder you want to insert.

> **Warning:** NOTE
> 
> If you use placeholders for a deal, contact, or company and your document is linked to multiple records, the placeholder takes its data from the first linked record. For more details, see the [associations section](https://www.advanzo.ch/docs/sections/basics#associations).

Steps

1. In the editor toolbar, click the **code** (<>) icon.
2. Choose a placeholder from the list, for example `company_name`, `brand.display_name`, `brand.internal_name`, or a named entry such as **Document - Title**, **Document - Owner**, **Document - Created At** or **Company - Name**.

## How to Send a Document

> **Info:** **Note**: Only users with the right [permissions](https://www.advanzo.ch/docs/sections/users#roles) can use the 'Send Document' feature. You need permission to edit documents you own or all documents.

### Steps to Send a Document

1. **Open the Document**: While creating or editing a document, go to the top navigation bar and click on the **Send** section.
2. **Check Signers**:

    - If you have already added signers, they are selected as recipients automatically.
    - If you do not want to send the document to certain signers, uncheck the box next to their names.
3. **Add More Recipients**: To include additional people, click **Add new recipient**.
4. **Choose an Email Account**: Select an [email account](https://www.advanzo.ch/docs/sections/inbox/accounts) from which to send the document.
5. **Set the Message Subject**:

    - Enter the subject of your message.
    - You can change the default subject in the document [brand settings](https://www.advanzo.ch/docs/sections/settings/brands).
6. **Write the Message Text**:

    - Type in your message.
    - You can change the default text in the [brand settings](https://www.advanzo.ch/docs/sections/settings/brands).
7. **Send the Document**: Once everything is set, click **Send**.

> **Info:** This feature requires a working cron job. The document is sent at the specified date and time only if the [cron job](https://www.advanzo.ch/docs/sections/cron) is configured properly.

## Tracking Document Views

### How It Works

Advanzo CRM records every time a customer looks at the HTML page of a document. When this happens, the owner of the document is notified.

### Benefits for Sales Reps

- Sales reps know whether a customer has seen the document they sent. This helps them to follow up and to understand how engaged the customer is.

### Notifications and Logs

- When a document is viewed, the document owner gets a **bell notification**.
- A **Document Viewed** [email notification](https://www.advanzo.ch/docs/sections/mail-templates) is also sent out.

### Activity Log

- Advanzo CRM records an activity each time the document is viewed.
- The example below shows what this looks like.

On this screen

The activity log lists entries such as **The document was accepted**, **The document was viewed** and **The document has been created by Admin**, each with a date and time.

> **Info:** Document views are not tracked when a logged-in user views the document.

Advanzo CRM tracks when a customer views the HTML version of a document, but it recognises and ignores repeated page reloads within a short time to avoid redundant notifications.

- Document views are **tracked hourly**.
- This means that if a customer reloads the page several times within an hour, the reloads are not logged as new views.
- Advanzo CRM **does not log a new activity or notify the owner for each reload**.
- If the customer comes back and views the document again more than an hour after their first visit, this counts as a new view.
- In that case, the document owner is notified again.

## Using Document Templates

### Why Use Templates?

Using templates in Advanzo CRM can save you a lot of time. Imagine sending 10 proposals a day to potential customers. Without templates, you'd have to create each one from scratch. With templates, you have ready-made content that you can add to your documents quickly.

### Managing Your Templates

- Click the **Manage Templates** link below the template selector to go to the templates page.
- You can also access all available templates from the documents index view.
- Here, you can create, edit, or delete templates.

Steps

1. On the **Documents** index, click the **...** (more) menu in the top bar.
2. Select **Manage templates**. The same menu also offers **Trashed** and **List settings**.

### How to Save a Document as a Template

- In the document's **Content** section, click **Save Template**.
- Give your template a clear name.
- If you want to share it with your team, tick the **Share this template with other team members?** box.
- Click **Save**.

### How to Insert a Template into a Document

- Go to the **Content** tab.
- Use the **Insert Template** dropdown at the top right to pick a template.
- When you select a template, the document content is updated automatically.
