# How to modify invoice or quote templates

> Learn how to modify invoice or quote templates in ServiceM8.

If you are currently using a ServiceM8 invoice or quote template, you can adjust **fields**, which are dynamic references to information contained within ServiceM8, and formatting as needed. In this article, we will walk you through adding _Amount Paid_ and _Amount Due_ fields to an existing invoice template by taking the following steps:

1.  [Downloading the template for modification](#to-download-a-template-for-modification)
2.  [Adding new fields](#to-add-fields-to-a-template)
3.  [Adjusting formatting](#adjusting-formatting)
4.  [Uploading the modified template back to ServiceM8](#uploading-a-modified-template-to-servicem8)

**TIP:** We recommend that only users who are comfortable using advanced Microsoft Word functionality attempt to modify templates. If you need assistance, one of our [ServiceM8 Partners](https://www.servicem8.com/partner-directory) would be happy to discuss your needs.

## To download a template for modification:

1.  From the Online Dashboard, go to **Settings** > **Document Templates** and find the template you'd like to modify. (For more information about choosing a template, go to [Selecting new invoice or quote templates](/help-center/desktop/invoicing/how-to-select-new-invoice-or-quote-templates).)

1.  From the Help pane on the right, click **click here** to download the template.

![downloading a template for modification](/images/004-554-476-bef118ab-f269-4d61-bd31-9ecee14505c2.png)

![blank](/images/004-554-478-ae697325-c33d-436a-9faf-6ee7383f6214.png)

1.  Open the template in Word (if asked, click **Enable Editing**).

[![enabling editing in Word](/images/004-554-480-medium-7296a9b5-2163-4b4e-84dd-c09cabad3cf6.png)](/images/004-554-480-7296a9b5-2163-4b4e-84dd-c09cabad3cf6.png)

![blank](/images/004-554-482-2f2fd9ae-9eac-4703-86a3-557e46068c51.png)

1.  Go to **Table Tools** > **Layout** and click **View Gridlines**. This lets you see how all template content is structured within hidden tables in Word.

![viewing gridlines](/images/004-554-484-b6dc90f0-1ad3-4d57-8832-0a9fbe7acc93.png)

![blank](/images/004-554-486-e249718c-6656-4cb0-9189-3463b4aa9897.png)

In our example, we want to display _Amount Paid_ and _Balance Due_ lines below the _Total Charge_ line. To do so, we'll need to add two new fields in two new rows.

## To add fields to a template:

1.  Highlight the row above where you will be adding new fields.
2.  Right-click and click **Insert** > **Insert Below**.

![adding rows to a table](/images/004-554-488-a8844663-fd6f-4625-ab5a-f349a8cabe72.png)

![blank](/images/004-554-490-3587097c-c840-4582-84e2-a117e281d5f1.png)

1.  Repeat once so that you have two new rows below _Total Charge_.
2.  Type in your new field descriptions (_Amount Paid_ and _Amount Due_) below _Total Charge_.

![new field descriptions](/images/004-554-492-ff47ad6a-2f89-426d-8e5c-9f0491988f78.png)

![blank](/images/004-554-494-fda6632b-319a-4fd6-b55c-f3e1b05971ac.png)

**TIP**: At this point, it helps to reference the list of [Available fields for invoice and quote templates](/help-center/advanced-setup/invoice-quote-templates/available-fields-for-invoice-and-quote-templates), which lists all available fields for invoices and quotes and describes what information they reference. Look for the fields described as "Amount Paid by Customer" and "Total price less any amounts paid" and note the associated field names.

1.  Insert your cursor in the cell to the right of _Amount Paid_ and go to **Insert** > **Quick Parts** > **Field**. (For MacOS users, go to **Insert** > **Field** per the second picture below.) The Field window will open.

![inserting a field](/images/004-554-496-9f3f739c-231a-4191-91ab-1d4e409cdebe.png)

![blank](/images/004-581-275-e3ebd692-8bae-4b94-82a0-17c9a26f2f9a.png)

_(Following screenshot applies to MacOS users only)_

![inserting a field MAC](/images/004-573-233-cdcabc9e-fb7e-4935-9eae-2a0445ce5348.png)

![blank](/images/004-554-498-c9cee99c-459a-46ca-b3fc-ecb766bf4492.png)

1.  Under _Categories_, select **Mail Merge**, then select **MergeField** as the field name.
2.  Under _Field properties_, enter **job.amount\_paid** as the field name (or copy and paste it from the [list of available fields](/help-center/advanced-setup/invoice-quote-templates/available-fields-for-invoice-and-quote-templates)). (For MacOS users, enter the field name in the _MergeField_ text box per the second picture below.)
3.  Click **OK**.

![inserting Amount Paid field](/images/004-554-500-9b5ecd23-e75e-4f8a-8e67-dc2fc29b75f8.png)

![blank](/images/004-581-277-ad67f21e-fc7f-45cf-aedf-c30526a6782e.png)

_(Following screenshot applies to MacOS users only)_

![inserting Amount Paid field MAC](/images/004-573-235-2500aa03-5c5d-4dfb-85b0-da110fffc8bc.png)

![blank](/images/004-554-502-3138cd4e-3547-473f-8267-8d75d767880c.png)

1.  Place your cursor in the cell to the right of _Balance Due_ and, using the same process, insert another field. This time, use **job.balance\_due** as the field name in the field properties.

## Adjusting formatting

You should now have two new fields in two new rows in your invoice template. However, adding rows and fields can sometimes impact the appearance of a template. To ensure a professional, consistent presentation, always check formatting and alignment before uploading back to ServiceM8.

In the example below, the two new fields are formatted in a different font than the others. To correct the issue, simply highlight the fields and change the font as needed to match the rest of the invoice.

![fields with font adjustments](/images/004-554-504-0e0da533-0f54-4dfa-8a5e-ea386aa65666.png)

![blank](/images/004-554-506-c8f04f7f-3363-487d-a71a-6c6115f99d88.png)

Once you're happy with your formatting, save your document. The final step is to upload your saved invoice template back to ServiceM8.

## Uploading a modified template to ServiceM8

1.  From your ServiceM8 Online Dashboard, go back to **Settings** > **Document Templates.**
2.  From the Template pane on the left, select the type of document you are uploading (**Invoice** or **Quote**).

![selecting invoice or quote templates](/images/004-554-508-320bdc43-0e48-459f-91f5-02067a704107.png)

![blank](/images/004-554-509-7e4b0a82-947c-4924-92d6-ad4234eecf94.png)

1.  From the Help pane on the right, click **Upload Custom Invoice Template**.

![uploading custom invoice template](/images/004-554-511-4e4c149e-ca79-493d-8a0f-95b5e28bd0ea.png)

![blank](/images/004-554-513-3708a4e9-f663-4679-89b0-f52ff0a26c39.png)

1.  Click **Select** and find your saved template.
2.  Click **Attach**.

![uploading a custom invoice](/images/004-554-515-6e69548f-502d-40b4-9881-0eff0d2d2bf4.png)

![blank](/images/004-554-517-123f5b9f-202c-47c7-a672-a33472a40c41.png)

The modified template, containing both _Amount Paid_ and _Balance Due_ amounts, is now the current invoice template.

![modified invoice](/images/004-554-519-b5d43a26-defe-44f0-8ec0-13ee12b83b1b.png)
