mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-21 13:33:57 +00:00
show all active services for suppliers when not in segment
This commit is contained in:
@@ -131,7 +131,7 @@ class Company extends AbstractModel implements Documentable
|
||||
*/
|
||||
public function services(): Builder {
|
||||
|
||||
if ($this->type === 3) {
|
||||
if ($this->business_type === 3) {
|
||||
return ServiceType::where('status', ApprovalStatus::APPROVED)->whereHas('constants', function($query) {
|
||||
$query->where(function($query) {
|
||||
$query->where('reference', SegmentConstants::SERVICE_TYPE)->where('detail->is_active', true);
|
||||
|
||||
Reference in New Issue
Block a user