From ff5bf0c6e5dfba2c3c97da4ecc4d4b429cef46fa Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 8 Feb 2016 20:42:31 +0100 Subject: [PATCH] Opening balance does not count as an income or as an expense. It's just there. --- app/Helpers/Report/ReportQuery.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Helpers/Report/ReportQuery.php b/app/Helpers/Report/ReportQuery.php index 6f6d10d3fe..da7269002f 100644 --- a/app/Helpers/Report/ReportQuery.php +++ b/app/Helpers/Report/ReportQuery.php @@ -87,7 +87,7 @@ class ReportQuery implements ReportQueryInterface } ) ->leftJoin('accounts', 't_to.account_id', '=', 'accounts.id') - ->transactionTypes([TransactionType::WITHDRAWAL, TransactionType::TRANSFER, TransactionType::OPENING_BALANCE]) + ->transactionTypes([TransactionType::WITHDRAWAL, TransactionType::TRANSFER]) ->before($end) ->after($start) ->whereIn('t_from.account_id', $ids) @@ -122,7 +122,7 @@ class ReportQuery implements ReportQueryInterface } ) ->leftJoin('accounts', 't_from.account_id', '=', 'accounts.id') - ->transactionTypes([TransactionType::DEPOSIT, TransactionType::TRANSFER, TransactionType::OPENING_BALANCE]) + ->transactionTypes([TransactionType::DEPOSIT, TransactionType::TRANSFER]) ->before($end) ->after($start) ->whereIn('t_to.account_id', $ids)