Advance PDF question: `<#assign totalweight = t...
# advancedpdf
g
Advance PDF question:
<#assign totalweight = totalweight + toNumber(salesorder.item[0].custcol_item_weight)>
toNumber() is throwing an error...anybody can help me with this?
Update: toNumber() didn’t work. Instead, i used
?number
👍 1
m
toNumber
is a custom Freemaker function I wrote that you need to include in your template.
?number
works for most cases but will fail for example if there is a currency symbol.