Hello Gurus,
I created a custom Advanced PDF/HTML Template for the Purchase Order (customized from Standard Purchase PDF/HTML Template), and I would like to display the UPC Code of each item in the template.
I get the upccode field for the item as below but every different item shows the same upc code value of the first item in the list:
<table class="itemtable" style="width: 100%; border: 1;"><!-- start items --><#list record.item as item><#if item_index==0>
<thead>
<tr>
<th colspan="2">Vendor Name</th>
<th colspan="4">${item.item@label}</th>
<th colspan="2">${item.item.upccode@label}</th>
<th align="center" colspan="2">${item.quantity@label}</th>
<th align="right" colspan="3">${item.rate@label}</th>
<th align="right" colspan="3">${item.amount@label}</th>
<th align="center" colspan="2">${item.department@label}</th>
<th align="center" colspan="3">${item.expectedreceiptdate@label}</th>
</tr>
</thead>
</#if><tr class="itemtr">
<td colspan="2">${item.vendorname}</td>
<td colspan="4"><span class="itemname">${item.item}</span><br />${item.description}</td>
<td align="right" colspan="2">${item.item.upccode}</td>
<td align="center" colspan="2" line-height="150%">${item.quantity}</td>
<td align="right" colspan="3">${item.rate}</td>
<td align="right" colspan="3">${item.amount}</td>
<td align="center" colspan="2" line-height="150%">${item.department}</td>
<td align="right" colspan="3">${item.expectedreceiptdate}</td>
</tr>
</#list><!-- end items --></table>
Could you please help me look at this and let me know which field I should use to show the correct upc code for each item in the list in the Purchase Order template.
I appreciate it.