<#assign x = 0> <#assign aDateTim...
# advancedpdf
d
<#assign x = 0> <#assign aDateTime = .now> <#assign aDate = aDateTime?string["MM/dd/yyyy"]> <!--assign overdue = line.duedate?string["MM/dd/yyyy"]--> <!--#assign daysoverdue = aDate - overdue--> <thead> <tr> <th colspan="30">Invoice Number</th> <th colspan="40">Opportunity ID</th> <th colspan="30">Invoice Date</th> <th colspan="20">Due Date</th> <th colspan="16">Days Overdue</th> <th colspan="18">Invoiced Currency</th> <th colspan="40" align="right">Remaining Amount Due</th> <th colspan="30">Invoiced Amount</th> </tr> </thead> <#list statement.lines as line> <!--#assign dueDate = line.duedate?string["MM/dd/yyyy"]--> <#if line_index==0> <!-- remove balance forward --> <#elseif line.description?contains("Invoice")> <!--#if line.description?contains("Invoice")--> <tr> <td colspan="30">${line.description?replace("Invoice #" , "")}</td> <td colspan="40">${line.custbody_spotify_campaign}</td> <td colspan="30">${line.datecol}</td> <td colspan="20">${line.duedate}</td> <td colspan="16" align="center">${aDate-dueDate}</td>