Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tdelsoglio opened this issue May 13, 2024 · 3 comments
Open

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

tdelsoglio opened this issue May 13, 2024 · 3 comments
Labels
Area: Opportunities Issues & PRs related to all things regarding Opportunities Priority:Important Issues & PRs that are important; broken functions; errors; there are workarounds Severity: Moderate Minor Impact Type: Bug Something isn't working Type:Duplicate Issues & PRs which are a duplicate of an existing issue/PR

Comments

@tdelsoglio
Copy link

tdelsoglio commented May 13, 2024

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

  • Currency (data type: currency), which displays the currency type (Peso, Dollar, Euro).
  • Opportunity Amount (data type: currency), which is for entering the amount value.

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:

  • I want to enter ten thousand: 10.000. When I type “10.”, everything is fine until I add the next zero. Then the period (.) gets deleted, and it becomes: 100, instead of respecting the period (.), so it ends up displaying: 10000.
  • Another example is using both periods (.) and commas (,). I want to enter: 1.400,50 and as I enter each number, the delimiters get deleted, resulting in the value: 140050, which is incorrect.

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 johnM2401 added Type: Bug Something isn't working Priority:Important Issues & PRs that are important; broken functions; errors; there are workarounds Area: Opportunities Issues & PRs related to all things regarding Opportunities Severity: Moderate Minor Impact labels May 14, 2024
@johnM2401
Copy link

johnM2401 commented May 14, 2024

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
Copy link
Author

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
Copy link

scicali commented May 14, 2024

This is a very old issue: #50

@johnM2401 johnM2401 added the Type:Duplicate Issues & PRs which are a duplicate of an existing issue/PR label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Opportunities Issues & PRs related to all things regarding Opportunities Priority:Important Issues & PRs that are important; broken functions; errors; there are workarounds Severity: Moderate Minor Impact Type: Bug Something isn't working Type:Duplicate Issues & PRs which are a duplicate of an existing issue/PR
Projects
None yet
Development

No branches or pull requests

3 participants