```<#if (record.item?has_content)??> <tab...
# suitescript
k
Copy code
<#if (record.item?has_content)??>
<table style="width: 100%; margin-top: 10px;"><!-- start items --><#list record.item?filter(item -> item.quantitybackordered gt 0) as item><#if item_index==0>
<thead>
	<tr>
	<th align="center" colspan="3" style="padding: 10px 6px;">${item.quantity@label}</th>
	<th align="center" colspan="3" style="padding: 10px 6px;">Image</th>
	<th colspan="12" style="padding: 10px 6px;">${item.item@label}</th>
	<th align="center" colspan="2" style="padding: 10px 6px;">Back Ordered</th>
	<th align="right" colspan="4" style="padding: 10px 6px;">${item.rate@label}</th>
	<th align="right" colspan="4" style="padding: 10px 6px;">${item.amount@label}</th>
	</tr>
</thead>
</#if><tr>
	<td align="center" colspan="3" line-height="150%">${item.quantity}</td>
	<td align="center" colspan="3" line-height="150%"><#if item.custcol_lf_aws_url?starts_with("http")><img nscke-field="" src="<span class=" />LF | AP AWS Image&quot; style=&quot;width:50px;height:50px;margin:5px;&quot; href=&quot;${item.custcol_lf_aws_url}&quot; target=&quot;_blank&quot;/> </#if></td>
	<td colspan="12"><span style="font-weight: bold; line-height: 150%; color: #333333;">${item.item}</span><br />${item.description}</td>
	<td colspan="2">${item.quantitybackordered}</td>
	<td align="right" colspan="4">${item.rate}</td>
	<td align="right" colspan="4">${item.amount}</td>
	</tr>
	</#list>
  <!-- end items -->
    </table>