mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-27 05:31:11 -08:00
Merge pull request #8329 from snipe/fix_depreciation_report_v5
Fix deprecation report for customers with many active assets
This commit is contained in:
commit
fa291beaeb
|
@ -103,7 +103,7 @@ class ReportsController extends Controller
|
||||||
$this->authorize('reports.view');
|
$this->authorize('reports.view');
|
||||||
$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);
|
||||||
|
|
Loading…
Reference in a new issue