salesagility / SuiteCRM-Core

SuiteCRM - Open source CRM for the world
https://www.suitecrm.com
GNU Affero General Public License v3.0
176 stars 123 forks source link

Error fiel "amount" - SuiteCRM v. 8.5.1 #478

Open tdelsoglio opened 4 months ago

tdelsoglio commented 4 months ago

In the ‘Opportunities’ module, in the ‘Opportunity Amount’ section, I have two fields:

In the latter case is where I have the inconvenience. As I type a value, if I want to use a delimiter like a period (.) to mark the value level, and continue typing the rest of the value, the period (.) gets deleted. For example:

Attached are images. symbol Amount: image Amount: image New Opportunities view: image Error al typing: image

And if I change the data type of the ‘Opportunity Amount’ field to double, the ‘Currency’ field disappears automatically.

ruta:/public/legacy/custom/Extension/modules/Opportunities/Ext/Vardefs/_override_sugarfield_amount.php

image

Now in CRM: image

johnM2401 commented 4 months ago

Hey! Thank you for being in touch

I've had a look at this on a local copy of SuiteCRM 8.6,

The first issue appears to be okay, if I set my User Profile's Thousands and Decimal Seperators to what you are using (ie: Thousand = ".", Decimal = ",")

I enter 10.000: image

Save, it renders as 10.000,00: image

On Opportunity creation: image

Please let me know if you have further steps to replicate this, or if I have perhaps missed something?


However, I can replicate the 2nd issue. When entering any delimiter, it appears to get stripped out immediately. So I'll mark this ticket as a bug.

Thanks!

tdelsoglio commented 4 months ago

Thank you for getting back to me. The default value fields are working correctly. The images provided from the study section of those fields were to visualize the name of the field that is causing me the error, which is "Amount". The problem lies in the opportunities module, which does not respect thousands or decimal separators, as you could verify during testing. I'm making this clarification just to be sure and to provide more context about the issue. Once again, I appreciate your response and hope it can be resolved soon as it causes several inconveniences when trying to load an opportunity.

scicali commented 4 months ago

This is a very old issue: #50