adds an additional clause

This commit is contained in:
Godfrey M 2024-01-04 14:30:59 -08:00
parent 249ff868e5
commit 07eeaea3bf

View file

@ -127,6 +127,7 @@ class LicenseSeat extends SnipeModel implements ICompanyableChild
return $query->leftJoin('users as license_seat_users', 'license_seats.assigned_to', '=', 'license_seat_users.id')
->leftJoin('departments as license_user_dept', 'license_user_dept.id', '=', 'license_seat_users.department_id')
->whereNotNull('license_seats.assigned_to')
->whereNotNull('license_user_dept.id')
->orderBy('license_user_dept.name', $order);
}
}