GWM : iAgreeForAddOn policy handled

This commit is contained in:
Gowtham M 2026-01-13 18:49:33 +05:30
parent e559246491
commit f4c4551dd8

View File

@ -2715,8 +2715,12 @@ class EmployeeRestController extends AdminController
$array_list = [];
foreach ($client_policy_id as $key => $value)
{
// $policy = $this->clientPolicyModel->where('id',$value)->where('open_for_enrollment',1)->find();
$policy = $this->findThePolicyIsOpenForEnrollment($value, $emp_code);
$clientPolicyData = $this->clientPolicyModel->where('client_id',$client_id)
->where('id',$value)
->where('is_active', 1)
->first();
$policy = $this->findThePolicyIsOpenForEnrollment($clientPolicyData['base_policy'], $emp_code);
if($policy)
{
$this->myLogger->logme("error", 'client policy id = '.$value.' is open for enrollment');