Skip to content

Commit

Permalink
Fix deprecation report for customers with many active assets
Browse files Browse the repository at this point in the history
  • Loading branch information
uberbrady committed Aug 14, 2020
1 parent b999c50 commit 5128992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/ReportsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function getDeprecationReport()

$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);
Expand Down

0 comments on commit 5128992

Please sign in to comment.