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)}

Removing the Currency Symbol Printed Using Advanced PDF HTML Templates

If There is a requirement to remove the Currency Symbol printed using Advanced PDF/HTML Templates for Currency type fields without converting to 2 decimal places, add the following code to the value you need to remove the symbol. ?string?replace(‘[^\.,0-9]’,”,’r’) Example: ${item.rate?string?replace(‘[^\.,0-9]’,”,’r’)} Note: The additional code removes all non-numeric characters except ‘.’ and ‘,’. Add characters  within the… Continue reading Removing the Currency Symbol Printed Using Advanced PDF HTML Templates