From be056cea6b064daa6f46e3ae88348d477100457e Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 13 Dec 2015 20:41:35 +0100 Subject: [PATCH] Update some queries. --- app/Helpers/Report/ReportQuery.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Helpers/Report/ReportQuery.php b/app/Helpers/Report/ReportQuery.php index 2b32039e44..878da06a26 100644 --- a/app/Helpers/Report/ReportQuery.php +++ b/app/Helpers/Report/ReportQuery.php @@ -134,8 +134,8 @@ class ReportQuery implements ReportQueryInterface $query->orWhere( function (Builder $q) use ($ids) { $q->where('transaction_types.type', TransactionType::TRANSFER); - $q->whereIn('ac_from.id',$ids); - $q->whereNotIn('ac_to.id', $ids); + $q->whereNotIn('ac_from.id',$ids); + $q->whereIn('ac_to.id', $ids); } ); } @@ -208,8 +208,8 @@ class ReportQuery implements ReportQueryInterface $query->orWhere( function (Builder $q) use ($ids) { $q->where('transaction_types.type', TransactionType::TRANSFER); - $q->whereNotIn('ac_from.id', $ids); - $q->whereIn('ac_to.id', $ids); + $q->whereIn('ac_from.id', $ids); + $q->whereNotIn('ac_to.id', $ids); } ); }