Fix bug in year report.

This commit is contained in:
James Cole 2016-09-20 08:26:42 +02:00
parent 0574a706c8
commit ae328de469
2 changed files with 1 additions and 12 deletions

View File

@ -42,6 +42,7 @@ SHOW_DEMO_WARNING=false
ANALYTICS_ID=
SITE_OWNER=mail@example.com
PUSHER_KEY=
PUSHER_SECRET=
PUSHER_APP_ID=

View File

@ -426,18 +426,6 @@ class AccountRepository implements AccountRepositoryInterface
}
// that should do it:
$fields = TransactionJournal::queryFields();
$fields[] = 'source.account_id as source_account_id';
$fields[] = 'source.amount as source_amount';
$fields[] = 'destination.account_id as destination_account_id';
$fields[] = 'destination.amount as destination_amount';
$query->groupBy(
['source.account_id',
'source.amount',
'destination.account_id',
'destination.amount',]
);
$complete = $query->get($fields);
return $complete;