Use Case:
Users may want the printed currency format in an Advanced PDF/HTML Template to change automatically depending on the transaction’s Bill Country.
This can be achieved by setting the locale dynamically within the template source code.
How It Works:
- Navigate to Customization > Forms > Advanced PDF/HTML Templates
2. Locate the preferred Advanced PDF/HTML Template and click Edit
3. Insert the following code after Line 4 of the template:
<#setting locale = "en_${record.billcountry}">
4. Click Save
This will dynamically apply the currency and locale formatting based on the Bill Country of the transaction record.