Skip to content

Firefly III: a personal finances manager

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

James Colec0e578dd471f
diff --git a/app/Support/Steam.php b/app/Support/Steam.php
index 0acae19e34..0676290b81 100644
--- a/app/Support/Steam.php
+++ b/app/Support/Steam.php
@@ -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) {