Skip to content

A free open source IT asset/license management system

Fix deprecation report for customers with many active assets

Brady Wetherington4b7f6a95e366
diff --git a/app/Http/Controllers/ReportsController.php b/app/Http/Controllers/ReportsController.php
index a63de486b8..fdb7e064cf 100644
--- a/app/Http/Controllers/ReportsController.php
+++ b/app/Http/Controllers/ReportsController.php
@@ -103,7 +103,7 @@ class ReportsController extends Controller
$this->authorize('reports.view');
$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);