How we can fix the amount up to two decimal point in Advanced pdf

<#function toCurrency value showSymbol=false>

<#if value?is_number>

<#local retval = 0>

<#local retval = value?string[“#,##0.00”]>

<#return retval>

<#else>

<#return value>

Write this code before the style definition in the advanced pdf and use this function where we need to fix the ampunt

For Example :

<td colspan=”1″ align=”center” border=”.1″ style=”vertical-align: middle;border-top:1px;”>${toCurrency(item.quantity)}</td>

Leave a comment

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