Fixed a bug where consecutive payments from one source would not be summed up.

This commit is contained in:
James Cole 2015-03-01 10:55:20 +01:00
parent 675530458c
commit 262d4f92d4

View File

@ -230,7 +230,9 @@ class ReportQuery implements ReportQueryInterface
'transaction_journals.description',
'transaction_journals.encrypted',
'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']
);
}