Fixed weird whereNULL
This commit is contained in:
parent
e64e1207cf
commit
91a9e410df
1 changed files with 1 additions and 1 deletions
|
@ -756,7 +756,7 @@ class Asset extends Depreciable
|
||||||
|
|
||||||
public function scopeRTD($query)
|
public function scopeRTD($query)
|
||||||
{
|
{
|
||||||
return $query->whereNULL('assets.assigned_to')
|
return $query->whereNull('assets.assigned_to')
|
||||||
->whereHas('assetstatus', function ($query) {
|
->whereHas('assetstatus', function ($query) {
|
||||||
$query->where('deployable', '=', 1)
|
$query->where('deployable', '=', 1)
|
||||||
->where('pending', '=', 0)
|
->where('pending', '=', 0)
|
||||||
|
|
Loading…
Add table
Reference in a new issue