So I'm trying out creating a picking ticket for a ...
# advancedpdf
r
So I'm trying out creating a picking ticket for a while now, and I noticed in my testing that the picking ticket is adding line items that aren't supposed to be "picked", due to having a PO attached to the item (the
<createpo>
field). I'm also just seeing that after the `<#list record.item as item>`directive, there's an
<#if item_index==0>
. Now, this to me would seem to indicate if the index is 0, print it... but that doesn't sound right. Anyone have any insights? I thought I might add another
<#if item.createpo?has_content>
statement, but i'm unsure. I'd rather not nest the IF statements. Can I do some sort of an AND in there?
p
@Ricardo you can use
&&
inside your IF statement to make an AND. From memory,
<#if item_index==0>
is usually used in the NS templates to display column headers i.e. if it's the first line, display the header, otherwise don't.