Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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.