Skip to content

Firefly III: a personal finances manager

Update some queries.

James Colebe056cea6b06
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);
}
);
}