2017-09-19 1 views
1

NetSuiteで請求書を1件作成しました。私はまた、支払いを受け入れ、作成した請求書にクレジットを適用しました。誰も、 "リスト"タイプで、支払い/クレジット情報を含む関連レコードを印刷する方法を知っていますか?ここでNetSuiteでは、関連するレコードを高度なPDF/HTMLテンプレートで印刷する方法

は、請求書の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> 

答えて

1

私が行う方法を見ていませんこの。私はそれができないと思う。

関連する問題