mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-31 19:27:51 -06:00
Fixed a bug where consecutive payments from one source would not be summed up.
This commit is contained in:
parent
675530458c
commit
262d4f92d4
@ -230,7 +230,9 @@ class ReportQuery implements ReportQueryInterface
|
|||||||
'transaction_journals.description',
|
'transaction_journals.description',
|
||||||
'transaction_journals.encrypted',
|
'transaction_journals.encrypted',
|
||||||
'transaction_types.type',
|
'transaction_types.type',
|
||||||
't_to.amount', 'transaction_journals.date', 't_from.account_id as account_id',
|
DB::Raw('SUM(`t_to`.`amount`) as `amount`'),
|
||||||
|
'transaction_journals.date',
|
||||||
|
't_from.account_id as account_id',
|
||||||
'ac_from.name as name']
|
'ac_from.name as name']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user