From 67fe35d564ddb712f4e27460800615407bef2ef5 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 11 Dec 2015 11:32:22 +0100 Subject: [PATCH] Small query fix. --- app/Helpers/Report/ReportQuery.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Helpers/Report/ReportQuery.php b/app/Helpers/Report/ReportQuery.php index da559b003b..9809a9137c 100644 --- a/app/Helpers/Report/ReportQuery.php +++ b/app/Helpers/Report/ReportQuery.php @@ -301,7 +301,7 @@ class ReportQuery implements ReportQueryInterface $query->orWhere( function (Builder $q) { $q->where('transaction_types.type', TransactionType::TRANSFER); - $q->where('acm_from.data', '=', '"sharedAsset"'); + $q->where('acm_from.data', '=', '"sharedAsset"'); $q->where('acm_to.data', '!=', '"sharedAsset"'); } ); @@ -309,8 +309,7 @@ class ReportQuery implements ReportQueryInterface ); // only include selected accounts. - $query->whereIn('acm_to.id', $ids); - + $query->whereIn('ac_to.id', $ids); $query->orderBy('transaction_journals.date'); // get everything