> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Merge field reference

> Merge field reference

<Note>
  Numbers, dates, and time are [culture-sensitive][2].

  If documents are stored in Google Drive, merge fields are not supported.
</Note>

## VAT

When you want to correctly calculate VAT you must first subtract ALL discounts, including alternative discount (order discount). This must be done for each quoteline (product).

We call this the "Total price with alternative discount".

We multiply the "Total price with alternative discount" with the VAT (-Percentage). The resulting number we call **VATAmount**.

These values are summed up into the alternative's VATAmount field.

Finally, the alternatives TotalPrice and the alternatives VATAmount are then added together into the field we call **TotalPriceIncVAT**.

[2]: ../learn/quote-templates#culture


## Related topics

- [Group (merge fields)](/en/document/templates/merge-fields/group.md)
- [Alternative (merge fields)](/en/document/templates/merge-fields/alternative.md)
- [Quote (merge fields)](/en/document/templates/merge-fields/quote.md)
- [Quote templates and merge fields](/en/document/templates/learn/quote-templates.md)
- [Create a template document](/en/document/templates/learn/create.md)
- [Merge](/en/api/reference/restful/agent/contact_agent/merge.md)
