mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 21:53:08 -06:00
Update some queries.
This commit is contained in:
parent
659ca8be14
commit
be056cea6b
@ -134,8 +134,8 @@ class ReportQuery implements ReportQueryInterface
|
|||||||
$query->orWhere(
|
$query->orWhere(
|
||||||
function (Builder $q) use ($ids) {
|
function (Builder $q) use ($ids) {
|
||||||
$q->where('transaction_types.type', TransactionType::TRANSFER);
|
$q->where('transaction_types.type', TransactionType::TRANSFER);
|
||||||
$q->whereIn('ac_from.id',$ids);
|
$q->whereNotIn('ac_from.id',$ids);
|
||||||
$q->whereNotIn('ac_to.id', $ids);
|
$q->whereIn('ac_to.id', $ids);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -208,8 +208,8 @@ class ReportQuery implements ReportQueryInterface
|
|||||||
$query->orWhere(
|
$query->orWhere(
|
||||||
function (Builder $q) use ($ids) {
|
function (Builder $q) use ($ids) {
|
||||||
$q->where('transaction_types.type', TransactionType::TRANSFER);
|
$q->where('transaction_types.type', TransactionType::TRANSFER);
|
||||||
$q->whereNotIn('ac_from.id', $ids);
|
$q->whereIn('ac_from.id', $ids);
|
||||||
$q->whereIn('ac_to.id', $ids);
|
$q->whereNotIn('ac_to.id', $ids);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user