RE: Get days late in Statement Advanced PDF/HTML Template (Individual statement)
Hi. I’m trying to calculate the days late of every line in an individual statement. My idea was to subtract the current timestamp to the due date of every line with freemarker, but I’m not being able to obtain the current timestamp with the .now variable, which I’ve always used in the past in other templates.
I also tried using a non-stored formula field with “CURRENT_TIMESTAMP” and using it on the statement template. This works on other templates, such as invoices, but this custbody field prints nothing, empty.
Any suggestions for this would be highly appreciated. Thanks in advance!
just a thought.
maybe post the freemarker sample code and the relevant record part with &xml=t https://timdietrich.me/blog/netsuite-xml-representation-entity-transaction-records/
so others can see whats going on.