Fix for issue #123

This commit is contained in:
James Cole 2015-11-22 11:25:15 +01:00
parent d1329be2fa
commit 791d12fbb4
2 changed files with 2 additions and 1 deletions

View File

@ -64,6 +64,7 @@ class Authenticate
Carbon::setLocale($pref->data);
setlocale(LC_TIME, Config::get('firefly.locales.' . $pref->data));
setlocale(LC_MONETARY, Config::get('firefly.locales.' . $pref->data));
return $next($request);
}

View File

@ -60,7 +60,7 @@ class Amount
{
$amount = floatval($amount);
$amount = round($amount, 2);
$string = number_format($amount, 2, ',', '.');
$string = money_format('%!.2n', $amount);
if ($coloured === true) {
if ($amount === 0.0) {