Update some queries.

This commit is contained in:
James Cole 2015-12-13 20:40:41 +01:00
parent ea9af8366d
commit 659ca8be14

View File

@ -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);
}
);
}