Can I get two pointers on this code I'm using in a...
# advancedpdf
n
Can I get two pointers on this code I'm using in an email template to send just lines with unreceived quantities. How to calculate the Ordered - Received Qty. Another pointer on how to structure the #if to only show lines where Ordered - Received is greater than 0. (Open quantities).
<#list transaction.item as item>
<tbody>
<#if item.quantityreceived - item.quantity > 0 >
<tr>
<td>${item.description}</td>
<td>${item.quantity}-${item.quantityreceived}</td>
<td>${item.expectedreceiptdate}</td>
</tr>
</#if>
</tbody>
</#list>
You can use
gt
in place of
>
<#if(item.quantityreceived - item.quantity) gt 0 >
👍 1
s
and also <#assign > is a good option - for additional manipulation and storing variables
n
thank you...solved in about 7 key strokes.