<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">I'm sure there is a ticket on
code.vtiger.com for this or something very similar but I couldn't
find it. It's a shame that the commit didn't reference a ticket.<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">I agree though, currency fields should
be treated completely separately from normal decimal fields.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Al<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">On 14/02/2025 05:44, Rubén A. Estrada
Orozco wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAKjsHQ_hZbpV9A_1_NWA0nRxSuf1EeCQ6vLv+3U3+d=-N0xcgA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi everyone,<br clear="all">
</div>
<div><br>
</div>
<div>I see this change was introduced about 9 months ago: <a
href="https://code.vtiger.com/vtiger/vtigercrm/-/merge_requests/1185/diffs"
moz-do-not-send="true" class="moz-txt-link-freetext">https://code.vtiger.com/vtiger/vtigercrm/-/merge_requests/1185/diffs</a></div>
<div><br>
</div>
<div><img src="cid:part1.NuHZraUS.4cjVa9p7@gmail.com"
alt="image.png" width="542" height="172" class=""><br>
</div>
<div><br>
</div>
<div>This change has important/serious implications for the
behavior of Vtiger. </div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div><img src="cid:part2.g0rgS26O.JtSW4M0U@gmail.com"
alt="image.png" width="542" height="390" class=""><br>
</div>
<div><br>
</div>
<div>If you create a field such as this one:</div>
<div><br>
</div>
<div><img src="cid:part3.w5M2aUMU.ILLZ1O18@gmail.com"
alt="image.png" width="542" height="512" class=""><br>
</div>
<div><br>
</div>
<div>You expect it to have 4 decimals. You also expect that the
<u>currency</u> number format would not impact such other
fields. But guess what? it does!!!</div>
<div><br>
</div>
<div>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?</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>This was not carefully thought through. Vtiger team, please
consider reverting that change.</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">Saludos
<div><br>
</div>
<div>Rubén</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre wrap="" class="moz-quote-pre">_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
</blockquote>
<p><br>
</p>
</body>
</html>