mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-10 01:51:02 -04:00
setAttribute should be setTextAttribute for a group separator symbol.
This commit is contained in:
@@ -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']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user