Hi All, We print Packing Slip from Netsuite where...
# advancedpdf
n
Hi All, We print Packing Slip from Netsuite where there are serial numbers per item. If there are lot of serial numbers for single item the table doesnt show up in next page. It stays in the same page and ending it there. Any suggestion for this issues.
Copy code
<table border-bottom = "1" class="itemtable" style="width: 100%; margin-top: 10px;page-break-inside: avoid;"><!-- start items --><#list record.item as item><#if item_index==0>
<thead>
	<tr>
	<th border-left="1" border-right="1" border-top="1" colspan="4" style="width: 250px; height: 12px;">Item</th>
	<th border-right="1" border-top="1" style="width: 250px; height: 12px;">${item.description@label}</th>
    <th border-right="1" border-top="1" style="width: 100px; height: 12px;">Shipped</th>
    <th border-right="1" border-top="1" style="width: 100px; height: 12px;">COO</th>
	<th border-right="1" border-top="1" style=" width: 75px; height: 12px;">HS Code</th>
	</tr>
</thead>
</#if>
        <#list item.inventorydetail?split("<br />") as paragraph>
          	<#if paragraph_index == 0>
 				 <tr>
					<td border-top="1" border-left="1" border-right="1" colspan="4" style="width: 250px;">${item.item}</td>
					<td border-top="1" border-right="1" style="width: 250px;">${item.description}<br />${paragraph}</td>
					<td border-top="1" border-right="1" style="width: 100px;">${item.quantity}</td>
					<td border-top="1" border-right="1" style="width: 100px;">${item.custcolcoo}</td>
                  <td border-top="1" border-right="1" style="width: 75px;">${item.custcol_item_hscode}</td>
				</tr>
              <#else>
   			    <tr>
                  	<td border-left="1" border-right="1" colspan="4" style="width: 250px;"></td>
					<td border-right="1" style="width: 250px;">${paragraph}</td>
					<td border-right="1" style="width: 100px;"></td>
					<td border-right="1" style="width: 150px;"></td>
                   <td border-right="1" style="width: 150px;"></td>
				</tr>
                </#if>
		</#list>
          </#list>
p
@Nikhil Gangji try changing
page-break-inside: avoid
to
page-break-inside: auto
n
Thanks @PenguinsOfDoom I had added the page-break-inside: avoid. But it didnt resolve the issue. I had to split the description as well as Inventory detail to get it working. Thank you for your help simple smile