Address template can store different formats of addresses based on the region.
Each region has its way of defining addresses. To manage multiple address formats for your Documents (like Quotations, Purchase Invoices, etc.), you can create country-wise Address Templates.
To access address template, go to:
Home > Settings > Address Template
A default Address Template is created when you set up the system. You can either edit it or create a new template. This default template will apply to all countries not having a specific template.
Consider a customer from the United States where 'County' is a part of the address. If you set county in the address template for United States, then it'll show up in the address field and hence in the print preview. Fields like PIN code can be changed to be displayed as ZIP code and fields like county can be added by using Address Templates.
The Address Template checks the 'Country' field in the Address master to apply different address templates to transactions.
The templating engine is based on the Jinja Templating system. All the fields (including Custom Fields) will be available for creating the template.
Here is the default template:
{% raw %}{{ address_line1 }}<br>
{% if address_line2 %}{{ address_line2 }}<br>{% endif -%}
{{ city }}<br>
{% if state %}{{ state }}<br>{% endif -%}
{% if pincode %}PIN: {{ pincode }}<br>{% endif -%}
{{ country }}<br>
{% if phone %}Phone: {{ phone }}<br>{% endif -%}
{% if fax %}Fax: {{ fax }}<br>{% endif -%}
{% if email_id %}Email: {{ email_id }}<br>{% endif -%}{% endraw %}
Here is an example: