Skip to content

Commit

Permalink
user_sig_digits corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
ainaraRT committed Oct 28, 2024
1 parent 25dab0c commit e84243b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SticInclude/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ public static function formatDecimalInConfigSettings($decimalValue, $userSetting
// Set the user preferences or the default preferences
$dec_sep = empty($user_dec_sep) ? $sugar_config['default_decimal_seperator'] : $user_dec_sep;
$grp_sep = empty($user_grp_sep) ? $sugar_config['default_number_grouping_seperator'] : $user_grp_sep;
$sig_digits = empty($user_sig_digits) ? $sugar_config['sigDigits'] : $user_sig_digits;
$sig_digits = empty($user_sig_digits) ? $sugar_config['default_currency_significant_digits'] : $user_sig_digits;

// Format the number
$value = number_format($decimalValue, $sig_digits, $dec_sep, $grp_sep);
Expand Down

0 comments on commit e84243b

Please sign in to comment.