CHANGE_ in iAgreeForAddOn API status change : GWM
This commit is contained in:
parent
f19ccf6601
commit
7e69a77b8a
@ -1766,20 +1766,28 @@ public function iAgreeForAddOn()
|
|||||||
->set(array('emp_status'=>'enrolled'))
|
->set(array('emp_status'=>'enrolled'))
|
||||||
->update();
|
->update();
|
||||||
|
|
||||||
|
$empData = $this->employeeModel->where('emp_code', $emp_code )->where('client_id', $client_id ) ->where('is_active', 1 )->findAll();
|
||||||
|
|
||||||
if (!is_null($client_policy_id) && is_array($client_policy_id))
|
if (!is_null($client_policy_id) && is_array($client_policy_id))
|
||||||
{
|
{
|
||||||
$array_list = [];
|
$array_list = [];
|
||||||
foreach ($client_policy_id as $key => $value)
|
foreach ($client_policy_id as $key => $value)
|
||||||
|
{
|
||||||
|
foreach ($empData as $empDataKey => $empDataValue)
|
||||||
{
|
{
|
||||||
$this->employeePolicyModel->where('client_policy_id', $value )
|
$this->employeePolicyModel->where('client_policy_id', $value )
|
||||||
->where('is_active', 1 )
|
->where('is_active', 1 )
|
||||||
|
->where('employee_id', $empDataValue['id'] )
|
||||||
->set(array('status'=>'enrolled'))
|
->set(array('status'=>'enrolled'))
|
||||||
->update();
|
->update();
|
||||||
|
}
|
||||||
|
|
||||||
$find = $this->employeeModel->getEmpFamilybyEmpCode(client_policy_id: $value,emp_code: $emp_code,client_id: $client_id,emp_status:['draft','enrolled'],policy_status:['draft','enrolled']);
|
$find = $this->employeeModel->getEmpFamilybyEmpCode(client_policy_id: $value,emp_code: $emp_code,client_id: $client_id,emp_status:['draft','enrolled'],policy_status:['draft','enrolled']);
|
||||||
if(count($find) > 0){
|
if(count($find) > 0){
|
||||||
$array_list[] = $find;
|
$array_list[] = $find;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$notification = $this->notificationModel->where('client_id' ,$client_id)->where('template_name', 'member_review_and_summary_mail')->first();
|
$notification = $this->notificationModel->where('client_id' ,$client_id)->where('template_name', 'member_review_and_summary_mail')->first();
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user