首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在NetSuite中使用高级格式定制调拨订单的装箱单?

如何在NetSuite中使用高级格式定制调拨订单的装箱单?
EN

Stack Overflow用户
提问于 2017-06-29 11:36:08
回答 1查看 931关注 0票数 0

我已经用先进的pdf定制了NetSuite的装箱单。对于从销售订单创建的项目完成,它可以正常工作,但当项目完成来自调拨订单时,项目行为空。不管怎样,要解决这个问题吗?非常感谢!

代码语言:javascript
复制
<#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>
EN

回答 1

Stack Overflow用户

发布于 2017-06-29 20:55:16

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

代码语言:javascript
复制
<#list salesorder.item as tranline>

这是在salesorder记录中查找项目。尝试将其更改为(在它出现的每个位置)

代码语言:javascript
复制
<#list transferorder.item as tranline>

以便从transferorder中提取数据,并查看是否提取了正确的信息。我假设你已经在交易表单中设置了正确的模板,等等。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44815951

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档