Nikhil Gangji
11/28/2019, 7:21 AM<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>
PenguinsOfDoom
11/29/2019, 5:06 PMpage-break-inside: avoid
to page-break-inside: auto
Nikhil Gangji
11/30/2019, 4:32 AM