mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 09:51:21 -06:00
Fine tune income.
This commit is contained in:
parent
e5c19b7562
commit
2396b75e3c
@ -479,6 +479,8 @@ class ReportQuery implements ReportQueryInterface
|
|||||||
->leftJoin('transaction_types', 'transaction_types.id', '=', 'transaction_journals.transaction_type_id');
|
->leftJoin('transaction_types', 'transaction_types.id', '=', 'transaction_journals.transaction_type_id');
|
||||||
if ($showSharedReports === false) {
|
if ($showSharedReports === false) {
|
||||||
|
|
||||||
|
// show queries where transfer type is deposit, and its not to a shared account
|
||||||
|
// or where its a transfer and its from a shared account (both count as incomes)
|
||||||
$query->where(
|
$query->where(
|
||||||
function ($query) {
|
function ($query) {
|
||||||
$query->where(
|
$query->where(
|
||||||
@ -495,6 +497,9 @@ class ReportQuery implements ReportQueryInterface
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
// any deposit goes:
|
||||||
|
$query->where('transaction_types.type', 'Deposit');
|
||||||
}
|
}
|
||||||
$query->before($end)->after($start)
|
$query->before($end)->after($start)
|
||||||
->where('transaction_journals.user_id', Auth::user()->id)
|
->where('transaction_journals.user_id', Auth::user()->id)
|
||||||
|
Loading…
Reference in New Issue
Block a user