Changed default value for thousandsSeparator
This commit is contained in:
parent
e2a383a064
commit
a7ef82fd69
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ namespace App\View\Helper;
|
|||
use Cake\View\Helper;
|
||||
|
||||
class AmountHelper extends Helper {
|
||||
public function format($value, $thousandsSeparator = '') {
|
||||
public function format($value, $thousandsSeparator = ',') {
|
||||
$value = number_format($value, 8, '.', $thousandsSeparator);
|
||||
$dotIdx = strpos($value, '.');
|
||||
if ($dotIdx !== false) {
|
||||
|
@ -21,7 +21,7 @@ class AmountHelper extends Helper {
|
|||
return $value;
|
||||
}
|
||||
|
||||
public function formatCurrency($value, $thousandsSeparator = '') {
|
||||
public function formatCurrency($value, $thousandsSeparator = ',') {
|
||||
$dotIdx = strpos($value, '.');
|
||||
if ($dotIdx !== false) {
|
||||
$left = substr($value, 0, $dotIdx);
|
||||
|
|
Loading…
Reference in a new issue