Discussions
Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Get ready to take on exciting new challenges and become the next SuiteMaster of the Month!
How to print each item based on the quantity in Advanced PDFs?
I have an advanced PDF template that currently loops through items from a search and shows 4 items per page. I am trying to get it to print each item based on the quantity (if there is quantity 3, print it 3 times) From what I have found, I think I can do it with <#list record.item as item>
I am also trying this:
<#assign qtycount = 0>
<#list results as result>
<#list 1..result.quantity>
<#assign qtycount++>
<#-- do actual printing of result content here -->
<#if qtycount % 4 == 0>
<pbr> <#-- page break -->
</#if>
</#list>
</#list>
<#list 1..item.quantity as i> but I am not sure how to implement it in this situation. Any help, pointers, or documentation is appreciated. Below is my current working advanced PDF.
0