From 659ca8be14127bef72e6c395af1ed0b030ee3e01 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 13 Dec 2015 20:40:41 +0100 Subject: [PATCH] Update some queries. --- app/Helpers/Report/ReportQuery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Helpers/Report/ReportQuery.php b/app/Helpers/Report/ReportQuery.php index 72e913ea9e..2b32039e44 100644 --- a/app/Helpers/Report/ReportQuery.php +++ b/app/Helpers/Report/ReportQuery.php @@ -208,8 +208,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); } ); }