Create an Address Template
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, search Address template in the awesome bar.
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.
How to create an Address Template
Go to the Address Template list, click on New.
Select a country.
Change the CSS and Jinja if required.
A Jinja template is simply a text file. Jinja can generate any text-based format (HTML, XML, CSV, LaTeX, etc.). A Jinja template doesn’t need to have a specific extension: .html, .xml, or any other extension is just fine.
The templating engine is based on HTML and the Jinja Templating system. All the fields (including Custom Fields) will be available for creating the template.
Here is the default Jinja template:
Updated on: 02/09/2021