mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-26 21:43:53 +00:00
Also include all types.
This commit is contained in:
@@ -39,7 +39,7 @@ class ComponentRepository
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($shared === true) { // shared is true: always ignore transfers between accounts!
|
if ($shared === true) { // shared is true: always ignore transfers between accounts!
|
||||||
$sum = $object->transactionjournals()->transactionTypes(['Withdrawal'])->before($end)->after($start)
|
$sum = $object->transactionjournals()->transactionTypes(['Withdrawal', 'Deposit', 'Opening balance'])->before($end)->after($start)
|
||||||
->get(['transaction_journals.*'])->sum('correct_amount');
|
->get(['transaction_journals.*'])->sum('correct_amount');
|
||||||
} else {
|
} else {
|
||||||
// do something else, SEE budgets.
|
// do something else, SEE budgets.
|
||||||
|
|||||||
Reference in New Issue
Block a user