Pulled assetlog from custom report controller

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-09-14 18:17:52 -07:00
parent 284b4d869f
commit 3192a68b06

View file

@ -589,7 +589,7 @@ class ReportsController extends Controller
\Log::debug('Added headers: '.$executionTime);
$assets = \App\Models\Company::scopeCompanyables(Asset::select('assets.*'))->with(
'location', 'assetstatus', 'assetlog', 'company', 'defaultLoc', 'assignedTo',
'location', 'assetstatus', 'company', 'defaultLoc', 'assignedTo',
'model.category', 'model.manufacturer', 'supplier');
if ($request->filled('by_location_id')) {