From 5128992940b8565e5e87a2a917d3bcde8e21b711 Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Fri, 14 Aug 2020 15:03:03 -0700 Subject: [PATCH] Fix deprecation report for customers with many active assets --- app/Http/Controllers/ReportsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ReportsController.php b/app/Http/Controllers/ReportsController.php index 727d04308d..a892f0c931 100644 --- a/app/Http/Controllers/ReportsController.php +++ b/app/Http/Controllers/ReportsController.php @@ -102,7 +102,7 @@ class ReportsController extends Controller $depreciations = Depreciation::get(); // Grab all the assets - $assets = Asset::with( 'assignedTo', 'assetstatus', 'defaultLoc', 'location', 'assetlog', 'company', 'model.category', 'model.depreciation') + $assets = Asset::with( 'assignedTo', 'assetstatus', 'defaultLoc', 'location', 'company', 'model.category', 'model.depreciation') ->orderBy('created_at', 'DESC')->get(); return view('reports/depreciation', compact('assets'))->with('depreciations',$depreciations);