Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
How to add Age in Days Column at Statement Printout Using Advanced PDF/HTML Template?
I followed these two answers 49990 and 81907, but it still gives me an error when previewing the pdf. could you please enlighten me what was wrong? Thank you!
<td align="right" style="width: 106px;">${((.now?date?long-line.duedate?date?long)/(1000*60*60*24))?int}</td>
tried removing the spaces also
<#list record.lines as line><tr>
<td style="width: 83px;">${line.datecol}</td>
<td style="width: 103px;">${line.description}</td>
<td style="width: 91px;">${line.duedate}</td>
<#if line.duedate?string?has_content>
<td align="right" style="width: 106px;">${((.now?date?long-line.duedate?date?long) / (1000 * 60 * 60 * 24))?int}</td>
<#else>
<td align="right" style="width: 106px;">${fieldID}</td>
Tagged:
0