mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-31 19:27:51 -06:00
Expand query to catch all expenses.
This commit is contained in:
parent
a2ccbf7844
commit
9bd1503cb4
@ -383,6 +383,14 @@ class ReportQuery implements ReportQueryInterface
|
||||
$q->where('acm_from.data', '!=', '"sharedAsset"');
|
||||
}
|
||||
);
|
||||
// OR transfers from a NOT shared account to a shared account.
|
||||
$query->orWhere(
|
||||
function (Builder $q) { // and transfers from a shared account to a not-shared account.
|
||||
$q->where('transaction_types.type', TransactionType::TRANSFER);
|
||||
$q->where('acm_to.data', '!=', '"sharedAsset"');
|
||||
$q->where('acm_from.data', '=', '"sharedAsset"');
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user