Better formatting for split transactions.

This commit is contained in:
James Cole
2016-05-13 19:40:13 +02:00
parent 5166171e5d
commit 5a6967cefd
6 changed files with 77 additions and 16 deletions

View File

@@ -163,12 +163,11 @@ class ReportController extends Controller
$exists = false;
$journals = new Collection;
$dayBeforeBalance = Steam::balance($account, $dayBefore);
/*
* Is there even activity on this account between the requested dates?
*/
if ($start->between($first, $last) || $end->between($first, $last)) {
$exists = true;
$exists = true;
$journals = $repos->journalsInPeriod($accounts, [], $start, $end);
}
@@ -203,7 +202,6 @@ class ReportController extends Controller
$auditData[$id]['dayBeforeBalance'] = $dayBeforeBalance;
}
$reportType = 'audit';
$accountIds = join(',', $accounts->pluck('id')->toArray());