mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-09-21 18:25:02 -04:00
setAttribute should be setTextAttribute for a group separator symbol.
This commit is contained in:
1 parent
9ee0bb1ed4
commit
97dfdf2f78
1 file changed
+1
-1
@@ -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