Netsuite Advanced PDF/HTML代码ifelse声明 [英] Netsuite Advanced PDF/HTML code ifelse statement

查看:118
本文介绍了Netsuite Advanced PDF/HTML代码ifelse声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一些正确的方法来帮助格式化Netsuite中的项目实现代码;

I need some assistance in the correct way to format this code for a item fulfillment in Netsuite;

  <td><#if item.units != null>Units<#else>${tranline.units}</#if></td>

我希望PDF表单显示度量单位(即单位),如果没有为项目指定特定的UOM,请说 UNITS ,而不显示任何内容.

I want the PDF form to show the Units of Measure (i.e. units) and if there is no particular UOM specificied for the item, to say UNITS instead of displaying nothing.

推荐答案

除了值放在错误的位置之外,您的示例对我而言是正确的.在我的PDF模板中,我也不使用NULL.下面是我写类似项目的方式.

Your example looks correct to me, aside from the values being in the wrong places. In my PDF templates, I do not use NULL, either. Below is how I have a similar item written.

<#if item.units=="">
  Units
<#else>
  ${tranline.units}
</#if>

这篇关于Netsuite Advanced PDF/HTML代码ifelse声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆