在领料单上突出显示工具包/包装组件 [英] Highlighting Kit/Package components on a picking ticket

查看:106
本文介绍了在领料单上突出显示工具包/包装组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个客户想要套件组件在带有高级PDF的领料单上突出显示或特别格式化.

I have a customer wanting kit components to be highlighted or specially formatted on a Picking Ticket with an advanced PDF.

我可以毫无问题地格式化父级,但是客户希望组件以不同的背景色显示. (自定义列字段指示套件项目,然后在表格上使用< #if>更改为粗体...

I can format the parent with no problem, but the customer wants the components to display in a different background colour. (custom column field indicating a Kit item, then using <#if> on the form to change to Bold...

但是我找不到字段或标准来告诉模板是否所涉及的项目是套件组件?

But i can't find a field or criteria to tell the template if the item in question is a KIT COMPONENT??

有人知道我怎么能做到这一点吗?

Anyone know how I can achieve this?

欢呼

史蒂夫

推荐答案

对于那些可能感兴趣的人,我发现了一种在进货单高级PDF模板上区分套件父级和套件组件的方法.

Just for those who may be interested, I found a way to differentiate between kit parent and kit component on a Picking Ticket Advanced PDF Template.

首先,创建一个交易列字段.复选框;储值;销售商品/IF;已隐藏;默认为已选中.

Firstly, create a transaction column field. Check Box; Stored Value; Sale Item/IF;HIDDEN;Default is CHECKED.

在输入销售订单期间,默认情况下将选中此字段.但是,由于套件组件未出现在销售订单条目上,因此它们将不会继承默认值,因此将保持为空.

During sales order entry, this field will be "checked" by default. However, as the kit components do not appear on the sales order entry, they will not inherit the default value and thus will remain NULL.

在高级PDF模板中,我执行了以下操作:

In the advanced PDF template, I did the following:

<#assign committed="${item.quantitycommitted}"/><#if committed="0"><#assign committed=''/></#if>
<#if item.custcol_notcomponent='T'>
    <#if item.custcolitemtype="Kit/Package"><tr style="font-weight:bold">
    <#else><tr style="font-weight:normal"></#if>
    <td width="15%" class="item" font-size="7pt">${item.item}</td>
    <td width="20%" class="item" align="center">${item.binnumber}</td>
    <td width="40%" class="item">${item.description}</td>
    <td width="8%" class="item" align="center">${item.quantity}</td>
    <td width="8%" class="item" align="center">${committed}</td>
    <td width="8%" class="item">&nbsp;</td>
    <td width="9%" class="item">&nbsp;</td>
    </tr>
<#else>
    <tr>
    <td width="15%" class="kititem" font-size="7pt">&nbsp;&nbsp;&nbsp;&nbsp;${item.item}</td>
    <td width="20%" class="kititem" align="center">${item.binnumber}</td>
    <td width="40%" class="kititem">${item.description}</td>
    <td width="8%" class="kititem" align="center">${item.quantity}</td>
    <td width="8%" class="kititem" align="center">${committed}</td>
    <td width="8%" class="kititem">&nbsp;</td>
    <td width="9%" class="kititem">&nbsp;</td>
    </tr>
</#if>

结果是领取了带有加粗套件父本,套件组件为灰色和凹入的组件以及标准库存物品的常规黑色文本的取货单.

The result, is a picking ticket with BOLD kit parents, greyed and indented kit components, and just regular black text for standard inventory items.

类似这样的交易行:

希望这可以帮助某人:)

Hope this helps someone out sometime :)

这篇关于在领料单上突出显示工具包/包装组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆