Does anyone know how to indent assemblies under th...
# administration
v
Does anyone know how to indent assemblies under their parent kits on picking ticket advanced pdf/html template?
n
sounds familiar. here is a snippet to inspire you
<#if assembly.issubassembly?length =3>
<tr><td colspan = "3">&nbsp;</td></tr>
<tr><td colspan = "3">-----------------------------</td></tr>
<tr>
<td align="center" colspan="2"> ${assembly.quantity}</td>
<td colspan="12"><span class="itemname">${assembly.item}</span><br />${assembly.description}</td>
<td align="right" colspan="3">${assembly.issubassembly}</td>
</tr>
<#else>>
<tr>
<td align="center" colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;  ${assembly.quantity}</td>
<td colspan="12"><span class="itemname">&nbsp;&nbsp;&nbsp;&nbsp; ${assembly.item}</span><br />${assembly.description}</td>
<td align="right" colspan="3">${assembly.issubassembly}</td>
</tr>
</#if>
v
so to detect if an assembly is a sub item of a kit, we should use
item.issubassemly
, right?
This is a snippet in Picking Ticket template
But it's not working @Netsuite Tragic
n
what is ‘not working’? I would display the values of
item.issubassemly
to first see if that field is giving you the values you need. If the values are right then work on formatting. If the values are not the right ones for your indenting then look for other attributes on the assembly.
v
item.issubassemly
is returning nothing. I am not sure which attributes I should use.