[英]Does Oracle NetSuite Advanced PDF Template have “Group by” and “SUM” Functions?
[英]NS Advanced PDF/HTML Template
我正在使用高級pdf創建發票的打印輸出。 我正在嘗試獲取“稅碼”記錄中與子列表“項目”中的“稅碼”字段相關的自定義字段的值。 我嘗試使用$ {item.taxcode.customfield},但在打印輸出中,出現錯誤
模板merging.com.netledger.templates.TemplateServiceException期間的異常:模板merging.java.lang.NullPointerException期間的異常請聯系管理員。
還有另一種方法來操縱我的案子並使之起作用嗎?
<table class="total" style="width: 100%; margin-top: 10px;" border="2"> <#list record.item as item><#if item_index==0> <tr> <th colspan="5" line-height="150%" style="font-weight: bold;background-color: rgb(255, 255, 255);padding: 4x 2px;">Tax Code Message</th> </tr> <tr> <td ><#if item.taxcode?contains("VAT:")><#assign taxcode>${item.taxcode?replace("VAT:","")}</#assign>${taxcode}<br/>${item.taxcode.customfield}</#if></td> <td ></td> <td ></td> </tr> <tr> <td ></td> <td ></td> <td ></td> </tr> </#if></#list> </table>
謝謝!
//假設customfield替代了您實際的SB / PD字段。 我可能是錯的,但是可能是您要“加入”兩個以上的記錄嗎? 不確定NetSuite是否允許。
查看是否可以通過以下方式訪問它:
record.field?has_content
... <#assign...
<#list item as items
<#list items.taxCode as itemTaxCode>
<{itemTaxCode.customfield}>
或者,您可以在記錄的行項目級別上執行該字段的來源,然后提取該custcol_ *字段。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.