There are scenarios where a user wants to copy the Table/style of a Basic Layout of Checks when using Advanced PDF/HTML Templates. We can customize the Standard US Voucher template to display a table that will reflect the sublists from the Check transaction.
Here are the changes of the code that we need to apply:
Replace the Body part of the Source code
<div class="items">
<table class="itemtable" style="position: absolute; overflow: hidden; left: 36pt;top: 15pt; width: 436pt;"><tr style="background-color: #000000; color: #FFFFFF;">
<td align="center" colspan="6" line-height="150%">Date</td>
<td align="center" colspan="8">Description</td>
<td align="center" colspan="5">Account</td>
<td align="center" colspan="3">Orig. Amt.</td>
<td align="center" colspan="3">Amt. Due</td>
<td align="center" colspan="3">Discount</td>
<td align="center" colspan="4">Amount</td>
</tr>
<#if check.apply?has_content><#list check.apply as apply>
<tr valign="top">
<td align="center" colspan="6" line-height="150%">${apply.applydate}</td>
<td align="left" colspan="8">${apply.type} #${apply.refnum}</td>
<td align="center" colspan="5">N/A</td>
<td align="right" colspan="3">${apply.total}</td>
<td align="right" colspan="3">${apply.due}</td>
<td align="right" colspan="3">${apply.disc}</td>
<td align="right" colspan="4">${apply.amount}</td>
</tr>
</#list></#if><#if check.expense?has_content><#list check.expense as expense>
<tr valign="top">
<td align="center" colspan="6" line-height="150%">${expense.date}</td>
<td align="left" colspan="8">${expense.description}</td>
<td align="center" colspan="5">${expense.account}</td>
<td align="center" colspan="3">EXPENSE</td>
<td align="center" colspan="3">N/A</td>
<td align="center" colspan="3">N/A</td>
<td align="right" colspan="4">${expense.amount}</td>
</tr>
</#list></#if><#if check.item?has_content><#list check.item as item>
<tr valign="top">
<td align="center" colspan="6" line-height="150%">${item.date}</td>
<td align="left" colspan="8">${item.item}, ${item.description}</td>
<td align="center" colspan="5">N/A</td>
<td align="center" colspan="3">ITEM</td>
<td align="center" colspan="3">N/A</td>
<td align="center" colspan="3">N/A</td>
<td align="right" colspan="4">${item.amount}</td>
</tr>
</#list></#if><#if check.credit?has_content><#list check.credit as credit>
<tr valign="top">
<td align="center" colspan="6" line-height="150%">${credit.creditdate}</td>
<td align="left" colspan="8">Credit Type: ${credit.type}</td>
<td align="center" colspan="5">N/A</td>
<td align="center" colspan="3">CREDIT</td>
<td align="center" colspan="3">N/A</td>
<td align="center" colspan="3">N/A</td>
<td align="right" colspan="4">${credit.amount}</td>
</tr>
</#list></#if></table>
</div>
Here is the printed template with the applied changes:
Let us know if you have questions.