From ef49e970a7c782d4412da449fdab4ad1d7f40b23 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 26 Feb 2015 15:06:44 +0200 Subject: [PATCH] Removed deleted and added archived records to the chart builder --- app/controllers/ReportController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/ReportController.php b/app/controllers/ReportController.php index 0dd36d1a0316..9000b8165444 100755 --- a/app/controllers/ReportController.php +++ b/app/controllers/ReportController.php @@ -52,7 +52,7 @@ class ReportController extends \BaseController $records = DB::table($entityType.'s') ->select(DB::raw('sum(amount) as total, '.$groupBy.'('.$entityType.'_date) as '.$groupBy)) ->where('account_id', '=', Auth::user()->account_id) - ->where($entityType.'s.deleted_at', '=', null) + ->where($entityType.'s.is_deleted', '=', false) ->where($entityType.'s.'.$entityType.'_date', '>=', $startDate->format('Y-m-d')) ->where($entityType.'s.'.$entityType.'_date', '<=', $endDate->format('Y-m-d')) ->groupBy($groupBy);