I have a customer wanting kit components to be highlighted or specially formatted on a Picking Ticket with an advanced PDF.
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?
Cheers
Steve
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.
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.
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"> </td>
<td width="9%" class="item"> </td>
</tr>
<#else>
<tr>
<td width="15%" class="kititem" font-size="7pt"> ${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"> </td>
<td width="9%" class="kititem"> </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.
Something like this for the transaction lines:
Hope this helps someone out sometime :)