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')