mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
More refactoring.
This commit is contained in:
@@ -127,12 +127,6 @@ class HomeController extends Controller
|
||||
$savingsTotal = bcadd($savingsTotal, Steam::balance($savingAccount, $end));
|
||||
}
|
||||
|
||||
$sum = $repository->sumOfEverything();
|
||||
|
||||
if (bccomp($sum, '0') !== 0) {
|
||||
Session::flash('error', strval(trans('firefly.unbalanced_error', ['amount' => Amount::format($sum, false)])));
|
||||
}
|
||||
|
||||
foreach ($accounts as $account) {
|
||||
$set = $repository->journalsInPeriod(new Collection([$account]), [], $start, $end);
|
||||
$set = $set->splice(0, 10);
|
||||
|
@@ -169,7 +169,7 @@ class ReportController extends Controller
|
||||
*/
|
||||
if ($start->between($first, $last) || $end->between($first, $last)) {
|
||||
$exists = true;
|
||||
$journals = $repos->getJournalsInRange($account, $start, $end);
|
||||
$journals = $repos->journalsInPeriod($accounts, [], $start, $end);
|
||||
|
||||
}
|
||||
/*
|
||||
|
Reference in New Issue
Block a user