Luis
08/25/2023, 3:27 AMStephan Vagner
08/25/2023, 3:51 AMLuis
08/25/2023, 3:55 AMStephan Vagner
08/25/2023, 4:01 AMLuis
08/25/2023, 4:12 AM<#assign totalAddlItems = 0>
<table class="itemtable" style="width: 100%; margin-top: 10px;"><!-- start items --><#assign sequenceNumber = 1><#list record.item as item><#if item_index==0>
<thead>
<tr>
<th colspan="1">Item#</th>
<th colspan="4">Memo</th>
<th align="right" colspan="2">Quantity</th>
<th align="right" colspan="2">Rate</th>
<th align="right" colspan="2">Amount (ex GST)</th>
</tr>
</thead>
</#if><#if item.quantity?has_content && !item.quantityordered?has_content && !item.custcol_pr_pcst?has_content><#assign totalAddlItems = totalAddlItems + item.amount><tr>
<td colspan="1">${sequenceNumber}</td>
<td colspan="4">${item.description}</td>
<td align="right" colspan="2">${item.quantity}</td>
<td align="right" colspan="2">${item.rate}</td>
<td align="right" colspan="2">${item.amount}</td>
</tr>
</#if><#assign sequenceNumber = sequenceNumber + 1>
<!-- end items --></#list></table>
<table style="width: 100%;"><#assign totalItemse = totalAddlItems><tr>
<td colspan="3"> </td>
<td align="right" colspan="12">Total Additional Items</td>
<td align="right" colspan="4">$${totalItemse?string(",##0.00")}</td>
</tr></table>
<br /> </#if>
Luis
08/25/2023, 4:12 AMStephan Vagner
08/25/2023, 4:13 AMLuis
08/25/2023, 4:15 AMDavid B
08/25/2023, 4:37 AMCD
08/25/2023, 4:40 AMLuis
08/25/2023, 4:46 AMDavid B
08/27/2023, 8:04 PM?counter
instead of an incremented variable
*sorry, just noticed that there is one, totalAddlItems
, which Luis is using to get the total amount of the filtered items.