Removing the Currency Symbol in Advanced PDF

To remove the currency symbol for the fields in advanced PDF template :

Add the below function in the <macrolist> :

<#function toCurrency value showSymbol=false>
<#if value?is_number>
<#local retval = 0>
<#local retval = value?string[“#,##0.00”]>
<#return retval>
<#else>
<#return value>
</#if>
</#function>

Call it as : ${toCurrency(item.grossamt)}

Leave a comment

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