diff --git a/app/Helpers/locale_helper.php b/app/Helpers/locale_helper.php index 133de9ae0..42c1a9630 100644 --- a/app/Helpers/locale_helper.php +++ b/app/Helpers/locale_helper.php @@ -384,7 +384,7 @@ function to_decimals(?float $number, string $decimals = NULL, int $type = Number if(empty($config['thousands_separator'])) { - $fmt->setAttribute(NumberFormatter::GROUPING_SEPARATOR_SYMBOL, ''); + $fmt->setTextAttribute(NumberFormatter::GROUPING_SEPARATOR_SYMBOL, ''); } $fmt->setSymbol(NumberFormatter::CURRENCY_SYMBOL, $config['currency_symbol']);