How to avoid a "divide by 0 error for calculated fields in an advanced PFD template?
Next works fine..:
<tr><#assign varA = item.amount/item.custcol_list_rate>
<td align="left" id="itemtbl_qtyamt" style="padding-left:10px">${varA}</td>
... unless the value of the "item.custcol_list_rate" field is empty or 0
I am looking for an if statement which makes sure to if "item.custcol_list_rate" is empty or 0, not ${varA} should be used in the second line but the item.quantity field
Which Guru can help me out?