CakedeskC
Cakedesk
Feb 15

Support for invoice due dates

PendingPending

Sep 29, 2025

Not sure if this was solved already or if this is relevant for anyone. I used a workaround that I implemented in my custom template. At the top I added the function: <% function addDays(date, numDays) { return new Date((new Date(date)).valueOf() + numDays * 1000 * 60 * 60 * 24).toISOString().slice(0, 10) } %> And later where the due date should appear: <%= formatDate(addDays(invoice.invoiceDate, 14)) %> The 14 means 14 days. You can adjust that number to the period that suits you best. Hope I'm not forgetting anything. Did that workaround a while ago.