From 3a236456cd2be9835b82972b39858bedfe2cb731 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 2 Mar 2016 20:44:55 +0100 Subject: [PATCH] Fix tag report thing. [skip ci] --- app/Helpers/Report/ReportHelper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Helpers/Report/ReportHelper.php b/app/Helpers/Report/ReportHelper.php index 8a5990da55..48a10c4830 100644 --- a/app/Helpers/Report/ReportHelper.php +++ b/app/Helpers/Report/ReportHelper.php @@ -238,7 +238,9 @@ class ReportHelper implements ReportHelperInterface ->leftJoin('transactions', 'transactions.transaction_journal_id', '=', 'transaction_journals.id') ->where('transaction_journals.date', '>=', $start->format('Y-m-d')) ->where('transaction_journals.date', '<=', $end->format('Y-m-d')) - ->whereIn('transactions.account_id', $ids)->get(['tags.id', 'tags.tag', 'transactions.amount']); + ->whereIn('transactions.account_id', $ids)->get( + ['tags.id', 'tags.tag', 'transaction_journals.id as journal_id', 'transactions.amount'] + ); $collection = []; if ($set->count() === 0) { return $collection;