【问题标题】:In NetSuite, How Do I Print Related Records in Advanced PDF/HTML Template在 NetSuite 中,如何在高级 PDF/HTML 模板中打印相关记录
【发布时间】:2018-02-28 14:57:38
【问题描述】:

我在 NetSuite 中创建了一张发票。我还接受了付款并在我创建的发票上应用了信用。有谁知道如何打印出相关记录,这是一个“列表”类型,包含付款/信用信息?

这是Invoice的xml部分:

<machine name="links" type="list" fields="id,trandate,linkurl,type,tranid,status,total">
<line>
<id>167209</id>
<linkurl>/app/accounting/transactions/custpymt.nl?whence=</linkurl>
<status>Deposited</status>
<total>100.00</total>
<trandate>9/18/2017</trandate>
<tranid>PYMT0716</tranid>
<type>Payment</type>
</line>
<line>
<id>167410</id>
<linkurl>/app/accounting/transactions/custcred.nl?whence=</linkurl>
<status>Fully Applied</status>
<total>560.00</total>
<trandate>9/19/2017</trandate>
<tranid>CM0985</tranid>
<type>Credit Memo</type>
</line>
<line>
<id>167410</id>
<total>660.00</total>
<type>Total</type>
</line>
</machine>

这是我在高级 PDF 模板中尝试做的事情:

<#if record.links?has_content>
      <table class="itemtable" style="width: 100%;">
        <#list record.links as lineitem>
          <#if lineitem_index==0>
            <thead>
              <tr>
                <th align="center">type</th>
                <th align="center">total</th>
              </tr>
            </thead>
          </#if>
          <tr>
            <td align="center" class="itemInfo">${lineitem.type}</td>
            <td align="center" class="itemInfo">${lineitem.total}</td>
          </tr>
        </#list>
      </table>
  </#if>

【问题讨论】:

    标签: html templates pdf freemarker netsuite


    【解决方案1】:

    我还没有看到这样做的方法。我觉得做不到。

    【讨论】:

      猜你喜欢
      • 2023-01-31
      • 2019-10-21
      • 2021-08-13
      • 2018-10-20
      • 2019-07-18
      • 2017-02-19
      • 2019-10-26
      • 2018-01-29
      • 1970-01-01
      相关资源
      最近更新 更多