在NetSuite的高级pdf模板上打印装配体零件中的值

时间:2018-11-14 21:26:22

标签: netsuite freemarker

我需要通过NetSuite中的高级pdf模板从物料清单的装配项目的各个组件中打印一些值。我可以使它起作用的唯一方法是通过使用item.item调用它们来引用这些字段,但是当我打印它时,它会重复它在所有组件中找到的第一个值

具有该行为的当前代码

    <table class="itemtable" style="width: 100%; margin-top: 10px;"><!-- start items --><#list record.item as item><#if item_index==0>
<thead>
    <tr>
    <th align="center" colspan="8" style="height: 24px;">${item.item@label}</th>
    <th colspan="4" style="height: 24px;">Vendor Part #</th>
    <th align="right" colspan="4" style="height: 24px;">${item.inventorydetail@label}</th>
    <th align="right" colspan="4" style="height: 24px;">Item Code</th>
    <th align="right" colspan="4" style="height: 24px;">${record.quantity@label}</th>
    </tr>
</thead>
</#if><tr>
    <td colspan="8" line-height="150%" style="text-align: left;">${item.item}</td>
    <td colspan="4">${item.item.vendorname!}</td>
    <td align="right" colspan="4">${item.inventorydetail}</td>
    <td align="right" colspan="4">${item.item.custitem12!}</td>
    <td align="right" colspan="4">${record.quantity}</td>
    </tr>
    </#list><!-- end items --></table>

视觉示例:

https://i.stack.imgur.com/SvWpK.jpg

似乎无法弄清楚。

0 个答案:

没有答案