'm trying to modify my Advanced HTML/PDF template so that it hides all Discount Item (Item lines) on invoices. I found SuiteAnswers 33495 and the following code snippet <#if !item.item?contains("Bed")>, but unable to get it to work with itemtype (tried to modify it to if !item.itemtype != 'discountitem'>). Can someone help me?
SuiteAnswers
<#if !item.item?contains("Bed")>
itemtype
if !item.itemtype != 'discountitem'>
Snippet from SuiteAnswer:
... </#if> <#if !item.item?contains("Bed")> <tr> <td align="center" colspan="3" line-height="150%">${item.quantity}</td> <td colspan="12"><span class="itemname"> ${item.item}</span><br />${item.description}</td> <td align="right" colspan="4">${item.rate}</td> <td align="right" colspan="4">${item.amount} </td> </tr> </#if> </#list> ...
Thanks in advance!
Try this condition: <#if item.itemtype != 'Discount'> When figuring out the correct filter based on a field value, try printing that value to see what NetSuite is returning.
1.4m articles
1.4m replys
5 comments
57.0k users