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

No display of user preferences in a decimal type field in PDF templates #10596

Open
SinergiaCRM opened this issue Dec 10, 2024 · 0 comments
Open
Labels
Area: PDFs Issues & PRs related to all things regarding PDFs Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Moderate Key function failed, but no or little impact Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Type: Bug Bugs within the core SuiteCRM codebase

Comments

@SinergiaCRM
Copy link
Contributor

Issue

It has been verified that in a decimal type field, the user preferences (thousands separator and Currency Significant Digits) are not correctly displayed when generating the PDF template.

Possible Fix

In the include/Utils.php file, there is the function formatDecimalInConfigSettings(), it returns the value already parsed with the decimal point. This value could be returned with the thousands separator and the Currency Significant Digits that the user has configured in his profile.

Steps to Reproduce the Issue

1. Enter a number greater than 999 with several decimal places in a decimal type field.
2. Include this field in a PDF template.
3. Check that the thousands separator and decimals configured in the user profile are not displayed when generating the template.

Context

No response

Version

7.14.6

What browser are you currently using?

Chrome

Browser Version

No response

Environment Information

PHP 7.4

Operating System and Version

Ubuntu 22.04

@SinergiaCRM SinergiaCRM added the Type: Bug Bugs within the core SuiteCRM codebase label Dec 10, 2024
ainaraRT pushed a commit to SinergiaTIC/SinergiaCRM that referenced this issue Dec 10, 2024
@johnM2401 johnM2401 added Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Area: PDFs Issues & PRs related to all things regarding PDFs Severity: Moderate Key function failed, but no or little impact labels Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: PDFs Issues & PRs related to all things regarding PDFs Priority:Important Issues & PRs that are important; broken functions, errors - there are workarounds Severity: Moderate Key function failed, but no or little impact Status:Fix Proposed A issue that has a PR related to it that provides a possible resolution Type: Bug Bugs within the core SuiteCRM codebase
Projects
None yet
Development

No branches or pull requests

2 participants