This FreeMarker script is designed to categorize overdue invoices on a customer statement by calculating the number of days between the invoice due date and the statement date. Here’s a concise breakdown of the process: Extract and Convert Dates: The script retrieves the due date (line.duedate) and statement date (statement.trandate), converting them into strings. Check… Continue reading Advanced PDF Template for Customer Statements: Calculating Date Differences for Invoice Aging
Tag: date comparsion
Compare dates are equal in script
const areDatesEqual = (d1, d2) => { return d1.getFullYear() === d2.getFullYear() && d1.getMonth() === d2.getMonth() && d1.getDate() === d2.getDate();… Continue reading Compare dates are equal in script