I wanted to try an idea where we would "remind" customers about upcoming payments before the invoice is overdue.
We would do this by using an #if in the reminder email to check if the current date is X days before the expected payment date and we would then use a different text, something like "Please remember that your invoice is due on XXX".
However, I am having trouble subtracting dates in XTRF (in fact, I am having trouble getting Dates and not strings to work with).
I would assume it would be done with something like:
But I cannot find how to get the expected payment date. I would have assumed it was $customerInvoice.getExpectedPaymentDate() or
$customerInvoice.calculatePaymentDueDate() but that does not work.
Does anyone have any ideas or pointers?
Customer support service by UserEcho