fixed AmountHelper bug where values without decimal points don't get properly formatted

This commit is contained in:
Akinwale Ariwodola 2017-06-14 23:24:54 +01:00
parent 3d5cfac462
commit a0bd169924

View file

@ -35,6 +35,8 @@ class AmountHelper extends Helper {
$value .= '.' . substr($right, 0, 2); $value .= '.' . substr($right, 0, 2);
} }
} }
} else {
$value = number_format($value, 2, '', $thousandsSeparator);
} }
return $value; return $value;