Small bug fixes.

This commit is contained in:
James Cole
2016-04-09 09:10:11 +02:00
parent 3962d9da92
commit 6f0f6e86a1
5 changed files with 12 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
<?php namespace FireflyIII\Http\Controllers;
use Amount;
use Artisan;
use Carbon\Carbon;
use Config;
@@ -120,11 +121,7 @@ class HomeController extends Controller
$sum = $repository->sumOfEverything();
if (bccomp($sum, '0') !== 0) {
Session::flash(
'error', 'Your transactions are unbalanced. This means a'
. ' withdrawal, deposit or transfer was not stored properly. '
. 'Please check your accounts and transactions for errors (' . $sum . ').'
);
Session::flash('error', strval(trans('firefly.unbalanced_error', ['amount' => Amount::format($sum,false)])));
}
foreach ($accounts as $account) {