Help please!
I have an Amount field on a list page. The underlying data in the table which produces the list indicates the value goes out two decimal places. (Ex. 18,947.67)
However, on the list it is displayed as $18,948.
On an entry screen, when I need to display the decimal and the user preference is set to 0, I have used this in the create script of the field.
CRM.UserOption("OldDecimalPlaces") = CRM.UserOption("NSet_DecimalPlaces");
CRM.UserOption("NSet_DecimalPlaces") = 2;
and then this on the last field of the screen..
CRM.UserOption("OldDecimalPlaces") = CRM.UserOption("NSet_DecimalPlaces");
CRM.UserOption("NSet_DecimalPlaces") = 0;
However, this is not working for me for a list.
I updated the user preference to display 2 decimal places in hopes that this would cause the amount to properly display on the list. However, the value is still displaying without decimals.
The page is being generated by a .net dll. Therefore, I am not able to go into an asp page and make modifications.
Is there something I can add to the custom content area to get the value to show with two decimal places? If so, can someone shove me in the right direction.
Any assistance would be greatly appreciated.
THank you!