From cd5223d98ddd3490199af042e35b64041d731a2b Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 27 Feb 2015 12:15:58 +0100 Subject: [PATCH] Removed a group clause that broke the budget report. --- app/Helpers/Report/ReportQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Helpers/Report/ReportQuery.php b/app/Helpers/Report/ReportQuery.php index 49250545d2..fc26592564 100644 --- a/app/Helpers/Report/ReportQuery.php +++ b/app/Helpers/Report/ReportQuery.php @@ -86,7 +86,7 @@ class ReportQuery implements ReportQueryInterface ->whereNull('budget_transaction_journal.budget_id')->whereNull('transaction_journals.deleted_at') ->whereNull('otherJournals.deleted_at') ->where('transactions.account_id', $account->id) - ->whereNotNull('transaction_group_transaction_journal.transaction_group_id')->groupBy('transaction_journals.id') + ->whereNotNull('transaction_group_transaction_journal.transaction_group_id') ->first( [ DB::Raw('SUM(`transactions`.`amount`) as `amount`')