Start work on updating services
This commit is contained in:
@@ -15,10 +15,10 @@ trait ScopeServiceActive
|
||||
public function scopeServiceActive($query)
|
||||
{
|
||||
return $query->where(function($q) {
|
||||
return $q->where('ab_service.active',TRUE)
|
||||
return $q->where('services.active',TRUE)
|
||||
->orWhere(function($q) {
|
||||
return $q->whereNotNull('order_status')
|
||||
->whereNotIn('ab_service.order_status',Service::INACTIVE_STATUS);
|
||||
->whereNotIn('services.order_status',Service::INACTIVE_STATUS);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user