Total Amount after rounding into 2 fixed decimal place

To display the total amount after rounding into a fixed decimal place in Advanced PDF template, refer sample code below

<#assign totalAmount =0>
<#list record.item as item>
<#assign totalAmount += (item.rate - item.quantity)?string("0.##")?number>
</#list>
<table>
<tr><td>${totalAmount}</td></tr>
</table>

Leave a comment

Your email address will not be published. Required fields are marked *