https://netsuiteprofessionals.com logo
#general
Title
# general
a

Aaron Biederman

04/28/2022, 4:37 PM
Does anyone know if you can source the preferred bin of an assembly item being built on a work order onto the Bill of Material advanced PDF template (traveler)? I can source it correctly by using
<td width = "2in">${record.assemblyitem.binnumber}</td>
but interestingly enough if there are multiple bins on that assembly item, the bin with the lowest internal ID is returned. I'd like the preferred. Any thoughts?
b

bhigh

04/28/2022, 4:41 PM
I'm not sure about 'preferred' bins, but if you iterated through the bins with a loop could you programmatically identify the correct one and set the <td> there?
a

Aaron Biederman

04/28/2022, 4:44 PM
I tried that but received this error "`Expected a sequence or collection, but this has evaluated to a hash+string (wrapper: com.netledger.templates.model.StringModel):`"
My basic code was along the lines of
<#list record.assemblyitem.binnumber as x>
<td width = "2in">${x}</td>
<#/list>
I had some checks in there for preferred bins too but received that error above
b

bhigh

04/28/2022, 5:14 PM
I'm not sure if there are rules against posting links, but I found this discussion: https://netsuitehub.com/forums/topic/advanced-pdf-printing-every-bins-on-picking-ticket/
10 Views