I have a currency with 4 decimals, but but when printed it should only print 2, this is working fine.
Then I have a function that prints the written ammount, but this displays the 4 digits on the decimal places. I have tried using the rw_Decimal_Round function to try and lower this but with no luck, it still displays the 4 digits.
What can I do?
Basically the field that displays the written ammount is like this:
FUNCTION_SCRIPT(rw_nsa_written_ammount roundedAmmount currencyId 1 "USD")
where roundedammount is the function that rounds the document ammount.
Then I have a function that prints the written ammount, but this displays the 4 digits on the decimal places. I have tried using the rw_Decimal_Round function to try and lower this but with no luck, it still displays the 4 digits.
What can I do?
Basically the field that displays the written ammount is like this:
FUNCTION_SCRIPT(rw_nsa_written_ammount roundedAmmount currencyId 1 "USD")
where roundedammount is the function that rounds the document ammount.