FIX_IAGREE_ADDON__NOT_ENROLLED_ISSUE
This commit is contained in:
parent
74b5aec271
commit
23865986e7
@ -2749,7 +2749,13 @@ class EmployeeRestController extends AdminController
|
||||
->where('id',$value)
|
||||
->where('is_active', 1)
|
||||
->first();
|
||||
$policy = $this->findThePolicyIsOpenForEnrollment($clientPolicyData['base_policy'], $emp_code);
|
||||
|
||||
if(in_array($clientPolicyData['policy_type_id'], [3,4,5])){
|
||||
$policy = $this->findThePolicyIsOpenForEnrollment($clientPolicyData['base_policy'], $emp_code);
|
||||
}else{
|
||||
$policy = $this->findThePolicyIsOpenForEnrollment($value, $emp_code);
|
||||
}
|
||||
|
||||
if($policy)
|
||||
{
|
||||
$this->myLogger->logme("error", 'client policy id = '.$value.' is open for enrollment');
|
||||
@ -2792,7 +2798,6 @@ class EmployeeRestController extends AdminController
|
||||
}
|
||||
|
||||
}else { $this->myLogger->logme("error", 'client policy id = '.$value.' is not open for enrollment');}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user