```<table class="itemtable" style="width: 100%;...
# advancedpdf
j
Copy code
<table class="itemtable" style="width: 100%; margin-top: 10px;">
<!-- start items -->
    <#list record.item as item>
        <#if item_index==0>
            <thead>
                <tr>
                    <th colspan="16">${item.item@label}</th>
                    <th align="right" colspan="4">${item.amount@label}</th>
                </tr>
            </thead>
        </#if>
        <tr>
            <td colspan="16">
              <span class="itemname">${item.item.displayname}</span>
                <br />
                  <span class="itemdescription">
                      <#if (item.custcol_swe_contract_end_date?length > 0)>
                      from ${item.custcol_swe_contract_start_date?string(dateFormat)} to ${item.custcol_swe_contract_end_date?string(dateFormat)}
                      </#if>
                </span><br/><br/>
            </td>
            <td align="right" colspan="4">
                <#if (item.itemtype != 'Description')>${item.amount?string("#,###,##0.00")}</#if>
            </td>
        </tr>
    </#list>
<!-- end items -->
</table>
Result:
m
Multiple joins in item lines are not supported