Fix deprecation report for customers with many active assets

This commit is contained in:
Brady Wetherington 2020-08-14 15:03:03 -07:00
parent b999c50a2e
commit 5128992940

View file

@ -102,7 +102,7 @@ class ReportsController extends Controller
$depreciations = Depreciation::get(); $depreciations = Depreciation::get();
// Grab all the assets // 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(); ->orderBy('created_at', 'DESC')->get();
return view('reports/depreciation', compact('assets'))->with('depreciations',$depreciations); return view('reports/depreciation', compact('assets'))->with('depreciations',$depreciations);