0

我使用高级 pdf 在 NetSuite 中自定义了装箱单。它适用于从销售订单创建的项目履行,但当项目履行来自转移订单时,项目行是空的。无论如何要解决这个问题?谢谢你!

<#if record.item?has_content>

<table class="itemtable" style="width: 100%; font-size: 8pt;" margin-
bottom="1px">
<thead>
<tr style="border-bottom: 2px solid #889588; background-color: #e3e3e3; 
border-top: 2px solid #889588;">
<th colspan="12">Description</th>
<th colspan="3">SKU</th>
<th align="right" colspan="4">Quantity</th>
<th align="right" colspan="4">Memo</th>
</tr>
</thead>
<#if record.showAddlItemsPackSlip == 'NONE'><!-- start items --><#list 
record.item as item><#list salesorder.item as tranline><#if 
tranline.line==item.orderline><tr style="border-bottom: 1px solid #889588">
<td colspan="12">${item.description}</td>
<td colspan="3">${item.item}</td>
<td align="right" colspan="4">${item.quantity}</td>
<td align="right" colspan="4">${item.custcol_description}</td>
</tr>
</#if></#list></#list><!-- end items --><#elseif 
record.showAddlItemsPackSlip == 'ALL'><!-- start items from sales order -->
<#list salesorder.item as tranline><#assign shipped=0><#list record.item as 
item><#if tranline.line==item.orderline><#assign shipped=item.quantity>
</#if></#list>
<tr>
<td colspan="12"><span class="itemname">${tranline.item}</span><br 
/>${tranline.description}</td>
<td colspan="3">${tranline.options}</td>
<td align="right" colspan="4">${tranline.quantity}</td>
<td align="right" colspan="4">${tranline.quantitybackordered}</td>
<td align="right" colspan="4">${shipped}</td>
</tr>
</#list><!-- end sales order items --><#elseif record.showAddlItemsPackSlip 
== 'UNFULFILLED'><!-- start items from sales order --><#list salesorder.item 
as tranline><#assign shipped=0><#assign isInList=false><#list record.item as 
item><#if tranline.line==item.orderline><#assign shipped=item.quantity>
<#assign isInList=true></#if></#list><#if isInList || 
tranline.quantitybackordered != 0>
<tr>
<td colspan="12"><span class="itemname">${tranline.item}</span><br 
/>${tranline.description}</td>
<td colspan="3">${tranline.options}</td>
<td align="right" colspan="4">${tranline.quantity}</td>
<td align="right" colspan="4">${tranline.quantitybackordered}</td>
<td align="right" colspan="4">${shipped}</td>
</tr>
</#if></#list><!-- end sales order items --></#if></table>
</#if>
4

1 回答 1

0

我们没有位置和转移订单,所以我无法对此进行测试,但我猜这可能是由于您模板中的这一行:

<#list salesorder.item as tranline>

这是在查找salesorder记录中的项目。尝试将它(在它发生的每个地方)更改为

<#list transferorder.item as tranline>

为了从中提取数据transferorder并查看它是否提取了正确的信息。我假设您已经在交易表格等中设置了正确的模板。

于 2017-06-29T12:55:15.533 回答