Hi,
I'm having an issue when merging a document using a custom function when with decimal numbers. In my template preview, it's seems correct ,but when I do the merge and attach the file to a record, all types of docs aren't displaying the number correctly.
This is my preview and as you can see, it displays the number correctly in both cases, the number to words function and the number format.
And this is my attached file (sample) when I run the custom function. As you can see, the number to words and the number format aren't handling the decimal part well.
In my custom function, I tried sending the data in different formats—text, number, and decimal—but I haven't been able to solve the problem.
Thanks