Start work on updating services

This commit is contained in:
Deon George
2022-04-19 17:07:39 +10:00
parent ebf08ea414
commit 621a132e35
63 changed files with 1038 additions and 612 deletions

View File

@@ -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);
});
});
}