diff --git a/app/Http/Controllers/ReportsController.php b/app/Http/Controllers/ReportsController.php index 73cc4618ee..d37e1e6b28 100644 --- a/app/Http/Controllers/ReportsController.php +++ b/app/Http/Controllers/ReportsController.php @@ -643,7 +643,8 @@ class ReportsController extends Controller $assets->whereBetween('assets.next_audit_date', [$request->input('next_audit_start'), $request->input('next_audit_end')]); } if($request->filled('exclude_archived')){ - $assets->where('archived', '=', 0) && $assets->where('status_id', '!=', 3); + $assets->notArchived(); +// where('archived', '=', 0) && $assets->where('status_id', '!=', 3); } $assets->orderBy('assets.id', 'ASC')->chunk(20, function ($assets) use ($handle, $customfields, $request) {