Our accountant would like to know whether it's possible to also list a customer's current unapplied deposits on their Customer Statement.
In looking at the Advanced PDF/HTML reference here (https://suiteanswers.custhelp.com/app/answers/detail/a_id/73908/loc/en_US), it says that the should be available via the submachine sublist on the Customer record associated with the Customer Statement:
However, when I try to access that sublist using Freemarker in the PDF template, I get no results. What is the correct way to reference that sublist and the values in it?
Alternatively, if I access the field ${customer.depositbalance} directly, I do get a value. But if I try to do any comparisons using Freemarker I get an error like below:
Left hand operand is a sequence+hash+string (wrapper: com.netledger.templates.model.EmptyModel).
Right hand operand is a number (wrapper: f.t.SimpleNumber).
What is the proper way to check customer.depositbalance using Freemarker? I have also tried <#if customer.depositbalance != "0">, but that also generates a nondescript error when attempting to print the statement.
Any help from anyone would be much appreciated!