我想,这样它隐藏在发票上的所有库存项目(项目线)修改我的高级HTML/PDF模板。我发现SuiteAnswers 33495和下面的代码片段<#如果!item.item?包含(“床”)>,但无法得到它与项目类型的工作(试图修改它,如果!item.itemtype ==“库存项目“>)。有人能帮我吗?从SuiteAnswer隐藏IF产品类型=库存项目
段:
...
</#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>
...
所有我想要是确定库存物品和发票隐藏起来,只显示在发票serviceitem。
提前致谢!
感谢您的建议michoel!我试过,但我得到这个错误:模板不能保存由于以下错误:在模板 期待一个布尔值(真/假)在这里表达 错误就行217列8 表达item.itemtype不计算为真/假 是com.netledger.templates.model.StringModel – hegel
的实例有一个错字有肯定的(但我不知道是否固定,这将是一个可行的解决方案);应该是:'<#if item.itemtype!='InvtPart'>'。 – ddekany
@ddekany哎哟感谢您的注意,我已修复该问题。 – michoel