mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fixed a bug where incoming transactions would not be properly filtered in several reports.
This commit is contained in:
@@ -377,7 +377,10 @@ class AccountRepository implements AccountRepositoryInterface
|
||||
* The destination of a transfer must be one of the $accounts in order to
|
||||
* be included. Otherwise, it would not be income.
|
||||
*/
|
||||
if (in_array($journal->destination_account_id, $accountIds)) {
|
||||
$destinations = TransactionJournal::destinationAccountList($journal)->pluck('id')->toArray();
|
||||
|
||||
if (count(array_intersect($destinations, $accountIds)) > 0) {
|
||||
// at least one of $target is in $haystack
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user