mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix bug in year report.
This commit is contained in:
@@ -42,6 +42,7 @@ SHOW_DEMO_WARNING=false
|
|||||||
|
|
||||||
ANALYTICS_ID=
|
ANALYTICS_ID=
|
||||||
SITE_OWNER=mail@example.com
|
SITE_OWNER=mail@example.com
|
||||||
|
|
||||||
PUSHER_KEY=
|
PUSHER_KEY=
|
||||||
PUSHER_SECRET=
|
PUSHER_SECRET=
|
||||||
PUSHER_APP_ID=
|
PUSHER_APP_ID=
|
||||||
|
@@ -426,18 +426,6 @@ class AccountRepository implements AccountRepositoryInterface
|
|||||||
}
|
}
|
||||||
// that should do it:
|
// that should do it:
|
||||||
$fields = TransactionJournal::queryFields();
|
$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);
|
$complete = $query->get($fields);
|
||||||
|
|
||||||
return $complete;
|
return $complete;
|
||||||
|
Reference in New Issue
Block a user