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!

Rookie Asked on November 24, 2021 in Other.
Add Comment
1 Answer(s)

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.

Rookie Answered 7 hours ago.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor