mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 06:17:28 -08:00
Remove asset call on depreciation report controller method
We ajax this in now, so no need for it Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
d96f877aa4
commit
8a93e1e796
|
@ -102,11 +102,7 @@ class ReportsController extends Controller
|
|||
{
|
||||
$this->authorize('reports.view');
|
||||
$depreciations = Depreciation::get();
|
||||
// Grab all the assets
|
||||
$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);
|
||||
return view('reports/depreciation')->with('depreciations',$depreciations);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue