From 1ddf7923a51cd041986e57799c35737e19b2fbcf Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Wed, 13 Dec 2023 13:38:54 +0800 Subject: [PATCH] show all active services for suppliers when not in segment --- app/Models/Company.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Company.php b/app/Models/Company.php index a1416ebb..54ae1e23 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -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);