【发布时间】:2019-01-07 07:57:12
【问题描述】:
我在 NetSuite 的高级 PDF/HTML 模板中使用 Freemarker 来生成发票。对于特定的项目类型,我想在发票上显示“1”而不是实际数量。这基于“服务”的项目类别下拉字段选择。我目前的尝试如下。
<#if record.custitem_item_category?string?contains("Services")>
<td align="center" colspan="3" line-height="150%">1</td>
<#else>
<td align="center" colspan="3" line-height="150%">${item.quantity}</td>
</#if>
我尝试使用 ?has_content 验证最初的 #if 语句,但它只是跳到了 #else 语句,所以我认为我在那里遗漏了一些东西。
【问题讨论】:
标签: netsuite freemarker