From 00ae600d1c0c31bb9da582dbd7c1da197348c4c9 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Sun, 26 Feb 2017 20:33:35 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20filter=20dashboard=20totals=20b?= =?UTF-8?q?y=20fiscal=20year=20start?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Ninja/Repositories/DashboardRepository.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Ninja/Repositories/DashboardRepository.php b/app/Ninja/Repositories/DashboardRepository.php index e48bca101f5f..5b6517997aad 100644 --- a/app/Ninja/Repositories/DashboardRepository.php +++ b/app/Ninja/Repositories/DashboardRepository.php @@ -219,7 +219,7 @@ class DashboardRepository if ($startDate) { $paidToDate->where('payments.payment_date', '>=', $startDate); } elseif ($startDate = $account->financialYearStart()) { - $paidToDate->where('payments.payment_date', '>=', $startDate); + //$paidToDate->where('payments.payment_date', '>=', $startDate); } return $paidToDate->groupBy('payments.account_id') @@ -250,7 +250,7 @@ class DashboardRepository } if ($startDate = $account->financialYearStart()) { - $averageInvoice->where('invoices.invoice_date', '>=', $startDate); + //$averageInvoice->where('invoices.invoice_date', '>=', $startDate); } return $averageInvoice->groupBy('accounts.id') @@ -393,7 +393,7 @@ class DashboardRepository } if ($startDate = $account->financialYearStart()) { - $expenses->where('expenses.expense_date', '>=', $startDate); + //$expenses->where('expenses.expense_date', '>=', $startDate); } return $expenses->groupBy('accounts.id')