Fix bug found by persistent user who kept mailing me about broken charts. Which turned out to be broken indeed!

This commit is contained in:
James Cole
2017-01-13 21:12:59 +01:00
parent 2b82fca2cf
commit c0e578dd47

View File

@@ -124,7 +124,8 @@ class Steam
->where('transaction_journals.date', '>=', $start->format('Y-m-d'))
->where('transaction_journals.date', '<=', $end->format('Y-m-d'))
->groupBy('transaction_journals.date')
->whereNull('transaction_journals.deleted_at')
->orderBy('transaction_journals.date')
->whereNull('transaction_journals.deleted_at')
->get(['transaction_journals.date', DB::raw('SUM(transactions.amount) AS modified')]);
$currentBalance = $startBalance;
foreach ($set as $entry) {