Quantity Back Ordered from a Sales Order on a Packing Slip using an Advanced PDF/HTML Template

<#if salesorder.item?has_content>
	<table class="itemtable" style="width: 100%; margin-top: 10px;">
		<thead>
			<tr>
				<th colspan="12">${salesorder.item[0].item@label}</th>
				<th colspan="3">${salesorder.item[0].description@label}</th>
				<th align="right" colspan="4">Quantity</th>
				<th align="right" colspan="4">Backordered</th>
			</tr>
		</thead>
		<#list salesorder.item as soline>
			<tr>
				<td colspan="12"><span class="itemname">${soline}</span><br />${soline}</td>
				<td colspan="3">${soline}</td>
				<td align="right" colspan="4">${soline}</td>
				<td align="right" colspan="4">${soline.quantityordered-soline.quantity}</td>
			</tr>
		</#list>
	</table>
</#if>

Quantity (Sales Order): soline.quantityordered
Quantity Backordered(Sales Order): soline.quantityordered-soline.quantity

Leave a comment

Your email address will not be published. Required fields are marked *