From ae328de469929b1cb56978ac5c060d277ee7e532 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 20 Sep 2016 08:26:42 +0200 Subject: [PATCH] Fix bug in year report. --- .env.example | 1 + app/Repositories/Account/AccountRepository.php | 12 ------------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/.env.example b/.env.example index fb1c164ed1..29286f6fa3 100755 --- a/.env.example +++ b/.env.example @@ -42,6 +42,7 @@ SHOW_DEMO_WARNING=false ANALYTICS_ID= SITE_OWNER=mail@example.com + PUSHER_KEY= PUSHER_SECRET= PUSHER_APP_ID= diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php index 4c44bc263b..7802ac773c 100644 --- a/app/Repositories/Account/AccountRepository.php +++ b/app/Repositories/Account/AccountRepository.php @@ -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;