mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
uses notArchived scope instead now
This commit is contained in:
parent
48349071ed
commit
58c54cc3dc
|
@ -643,7 +643,8 @@ class ReportsController extends Controller
|
||||||
$assets->whereBetween('assets.next_audit_date', [$request->input('next_audit_start'), $request->input('next_audit_end')]);
|
$assets->whereBetween('assets.next_audit_date', [$request->input('next_audit_start'), $request->input('next_audit_end')]);
|
||||||
}
|
}
|
||||||
if($request->filled('exclude_archived')){
|
if($request->filled('exclude_archived')){
|
||||||
$assets->where('archived', '=', 0) && $assets->where('status_id', '!=', 3);
|
$assets->notArchived();
|
||||||
|
// where('archived', '=', 0) && $assets->where('status_id', '!=', 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
$assets->orderBy('assets.id', 'ASC')->chunk(20, function ($assets) use ($handle, $customfields, $request) {
|
$assets->orderBy('assets.id', 'ASC')->chunk(20, function ($assets) use ($handle, $customfields, $request) {
|
||||||
|
|
Loading…
Reference in a new issue