I have a custom advanced PDF template for purchase orders, and I want it to not print closed lines.
How do I modify the code to do that.
I think I need to add
<#if item.closed?string != "true">
but when I add it after
<#if item_index==0>
I am getting the follwing syntax error:
Syntax error in template "template" in line 200, column 1:
Encountered "</#list>", but at this place only this can be closed: "#if". This usually because of wrong nesting of FreeMarker directives, like a missed or malformed end-tag somewhere. (Note that FreeMarker end-tags must have # or @ after the / character.)
This is the section from the source code for the item table:
</tr></table>
<#if record.item?has_content>
<table class="itemtable" style="width: 100%; height: 137.416px;"><!-- start items --> <#list record.item as item> <#if item_index==0>
<thead>
<tr style="height: 29.8333px;">
<th style="width: 12.0379%; height: 29.8333px;" colspan="3" align="center">${item.quantity@label}</th>
<th style="width: 45.8027%; height: 29.8333px;" colspan="12">${item.item@label} ${item.custcol_brccpoupc@label}</th>
<th style="width: 11.4507%; height: 29.8333px;" colspan="4">${item.options@label} ${item.custcoll_brcc_pobrnddesc@label} ${item.custcol_brcc_pobrndstyle@label}</th>
<th style="width: 15.2676%; height: 29.8333px;" colspan="3" align="right">${item.rate@label}</th>
<th style="width: 15.3186%; height: 29.8333px;" colspan="4" align="right">${item.amount@label}</th>
</tr>
</thead>
</#if><tr style="height: 107.583px;">
<td style="width: 12.0379%; height: 107.583px;" colspan="3" align="center">${item.quantity}</td>
<td style="width: 45.8027%; height: 107.583px;" colspan="12">
<p style="text-align: left;"><span class="itemname">${item.item} ${item.custcol_brccpoupc}</span></p>
<p><span class="itemname"> </span><span class="itemname">${item.description}</span></p>
<p><span class="itemname"> </span><br /><br /><br /></p>
</td>
<td style="width: 11.4507%; height: 107.583px;" colspan="4">
<p>${item.option}</p>
<p>${item.custcoll_brcc_pobrnddesc}</p>
<p>${item.custcol_brcc_pobrndstyle}</p>
</td>
<td style="width: 15.2676%; height: 107.583px;" colspan="3" align="right">${item.rate}</td>
<td style="width: 15.3186%; height: 107.583px;" colspan="4" align="right">${item.amount}</td>
</tr>
</#list> <!-- end items --></table>