I want to modify the form to print serial number in the column that says options right now. Here is the code.
<?xml version="1.0"?><!DOCTYPE pdf PUBLIC "-//big.faceless.org//report" "report-1.1.dtd"><pdf>
<head>
<link name="NotoSans" type="font" subtype="truetype" src="${nsfont.NotoSans_Regular}" src-bold="${nsfont.NotoSans_Bold}" src-italic="${nsfont.NotoSans_Italic}" src-bolditalic="${nsfont.NotoSans_BoldItalic}" bytes="2" />
<#if .locale == "zh_CN">
<link name="NotoSansCJKsc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKsc_Regular}" src-bold="${nsfont.NotoSansCJKsc_Bold}" bytes="2" />
<#elseif .locale == "zh_TW">
<link name="NotoSansCJKtc" type="font" subtype="opentype" src="${nsfont.NotoSansCJKtc_Regular}" src-bold="${nsfont.NotoSansCJKtc_Bold}" bytes="2" />
<#elseif .locale == "ja_JP">
<link name="NotoSansCJKjp" type="font" subtype="opentype" src="${nsfont.NotoSansCJKjp_Regular}" src-bold="${nsfont.NotoSansCJKjp_Bold}" bytes="2" />
<#elseif .locale == "ko_KR">
<link name="NotoSansCJKkr" type="font" subtype="opentype" src="${nsfont.NotoSansCJKkr_Regular}" src-bold="${nsfont.NotoSansCJKkr_Bold}" bytes="2" />
<#elseif .locale == "th_TH">
<link name="NotoSansThai" type="font" subtype="opentype" src="${nsfont.NotoSansThai_Regular}" src-bold="${nsfont.NotoSansThai_Bold}" bytes="2" />
</#if>
<macrolist>
<macro id="nlheader"><table class="header" style="width: 100%; height: 100.766px;"><tr style="height: 52.25px;">
<td style="width: 33.0061%; height: 100.766px;" rowspan="3"><#if companyInformation.logoUrl?length != 0> <@filecabinet nstype="image" style="float: left; margin: 7px;" src="${companyInformation.logoUrl}" width="150" height="39" /> </#if></td>
<td style="width: 27.8567%; height: 100.766px;" rowspan="3">
<p>${companyinformation.companyname}<br />${companyInformation.addressText}</p>
</td>
<td style="width: 39.1372%; height: 52.25px;" align="right"><span class="title">${record@title}</span></td>
</tr>
<tr style="height: 29.8594px;">
<td style="width: 39.1372%; height: 29.8594px;" align="right"><span class="number">#${record.tranid}</span></td>
</tr>
<tr style="height: 18.6562px;">
<td style="width: 39.1372%; height: 18.6562px;" align="right">${record.trandate}</td>
</tr></table><table class="footer" style="width: 100%;"><tr>
<td><barcode codetype="code128" showtext="true" value="${record.tranid}"/></td>
<td align="right"><pagenumber/> of <totalpages/></td>
</tr></table></head>
<body header="nlheader" header-height="10%" footer="nlfooter" footer-height="20pt" padding="0.5in 0.5in 0.5in 0.5in" size="Letter">
<table style="width: 100%; margin-top: 10px;"><tr>
<td class="addressheader" colspan="3"><strong>${record.billaddress@label}</strong></td>
<td class="addressheader" colspan="3"><strong>${record.shipaddress@label}</strong></td>
<td class="totalboxtop" colspan="5"><strong>${record.total@label?upper_case}</strong></td>
</tr>
<tr>
<td class="address" colspan="3" rowspan="2">${record.billaddress}</td>
<td class="address" colspan="3" rowspan="2">${record.shipaddress}</td>
<td class="totalboxmid" colspan="5" align="right">${record.total}</td>
</tr>
<tr>
<td class="totalboxbot" colspan="5" align="right"><strong>${record.duedate@label}:</strong> ${record.duedate}</td>
</tr></table>
<table class="body" style="width: 100%; margin-top: 10px;"><tr>
<th>${record.terms@label}</th>
<th>${record.duedate@label}</th>
<th>${record.otherrefnum@label}</th>
<th>${record.salesrep@label}</th>
<th>${record.shipmethod@label}</th>
<th>${record.partner@label}</th>
</tr>
<tr>
<td>${record.terms}</td>
<td>${record.duedate}</td>
<td>${record.otherrefnum}</td>
<td>${record.salesrep}</td>
<td>${record.shipmethod}</td>
<td>${record.partner}</td>
</tr></table>
<#if record.item?has_content>
<table class="itemtable" style="width: 100%; margin-top: 10px;"><!-- start items --> <#list record.item as item> <#if item_index==0>
<thead>
<tr>
<th colspan="3" align="center">${item.quantity@label}</th>
<th colspan="12">${item.item@label}</th>
<th colspan="3">${item.options@label}</th>
<th colspan="4" align="right">${item.rate@label}</th>
<th colspan="4" align="right">${item.amount@label}</th>
</tr>
</thead>
</#if><tr>
<td colspan="3" align="center">${item.quantity}</td>
<td colspan="12"><span class="itemname">${item.item}</span><br />${item.description}</td>
<td colspan="3">${item.options}</td>
<td colspan="4" align="right">${item.rate}</td>
<td colspan="4" align="right">${item.amount}</td>
</tr>
</#list> <!-- end items --></table>
<hr /></#if>
<table class="total" style="width: 100%; margin-top: 10px; border-collapse: collapse; margin-right: 0px; margin-left: auto;" border="1"><tr>
<td colspan="4"><strong>Notes</strong></td>
<td align="right"><strong>${record.subtotal@label}</strong></td>
<td align="right">${record.subtotal}</td>
</tr>
<tr>
<td colspan="4">${record.custbody1}</td>
<td align="right"><strong>${record.taxtotal@label} (${record.taxrate}%)</strong></td>
<td align="right">${record.taxtotal}</td>
</tr>
<tr>
<td colspan="4"> </td>
<td align="right"><strong>Shipping Cost</strong></td>
<td align="right">${record.shippingcost}</td>
</tr>
<tr class="totalrow">
<td colspan="4"> </td>
<td align="right"><strong>${record.total@label}</strong></td>
<td align="right">${record.total}</td>
</tr></table>
</body>
</pdf>