mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-26 02:40:43 -06:00
Also include all types.
This commit is contained in:
parent
8ad40389f2
commit
fa586dba7e
@ -39,7 +39,7 @@ class ComponentRepository
|
||||
}
|
||||
|
||||
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');
|
||||
} else {
|
||||
// do something else, SEE budgets.
|
||||
|
Loading…
Reference in New Issue
Block a user