[Vtigercrm-developers] decimal field format
Rubén A. Estrada Orozco
rulotec1 at gmail.com
Fri Feb 14 00:14:44 GMT 2025
Hi everyone,
I see this change was introduced about 9 months ago:
https://code.vtiger.com/vtiger/vtigercrm/-/merge_requests/1185/diffs
[image: image.png]
This change has important/serious implications for the behavior of Vtiger.
It formats all decimal fields according to the "Number of Currency
Decimals" parameter in the user's preferences. Such preferences can vary
from user to user.
[image: image.png]
If you create a field such as this one:
[image: image.png]
You expect it to have 4 decimals. You also expect that the *currency* number
format would not impact such other fields. But guess what? it does!!!
There is a big problem with this. If a user with 4 decimals format sets a
field value of a record to say 0.1234, and then a user with 2 decimals
format edits the same record without touching said field, then its value
will change to 0.12. Not the expected behavior, right?
Moreover, if you come from a Vtiger version prior to 8.2 and upgrade, then
this will potentially mess up your data little by little, removing decimals
from such fields. Because, the default number of decimals for currency
fields is 2, so most probably, you'll be losing decimals.
This was not carefully thought through. Vtiger team, please consider
reverting that change.
Saludos
Rubén
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20250213/550e24bd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 81577 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20250213/550e24bd/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 50581 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20250213/550e24bd/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 68470 bytes
Desc: not available
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20250213/550e24bd/attachment-0005.png>
More information about the vtigercrm-developers
mailing list