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

Open
opened 2026-02-20 16:32:21 -05:00 by deekerman · 0 comments
Owner

Originally created by @SinergiaCRM on GitHub (Dec 10, 2024).

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

Originally created by @SinergiaCRM on GitHub (Dec 10, 2024). ### 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 ```bash 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
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SuiteCRM-SuiteCRM#5281
No description provided.