CHANGE_ in iAgreeForAddOn : GWM

This commit is contained in:
Smart 2024-10-23 14:06:24 +05:30
parent fa16f9f743
commit ca0abe663f
2 changed files with 21 additions and 11 deletions

View File

@ -1856,6 +1856,7 @@ class EmployeeRestController extends AdminController
public function iAgreeForAddOn()
{
$postData = json_decode($this->request->getBody(), true);
$client_policy_id = $postData['client_policy_id'];
sort($client_policy_id);
@ -1875,6 +1876,9 @@ 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();
if($policy)
{
foreach ($empData as $empDataKey => $empDataValue)
{
@ -1889,8 +1893,14 @@ class EmployeeRestController extends AdminController
if(count($find) > 0){
$array_list[] = $find;
}
}
}
print_r($array_list);
die;
$notification = $this->notificationModel->where('client_id' ,$client_id)->where('template_name', 'member_review_and_summary_mail')->first();

View File

@ -94,7 +94,7 @@ class RestAuthenticationController extends AdminController
{
try {
$mobile_number = $this->request->getJSON()->mobile_number;
$otp_verification = $this->request->getJSON()->otp_verification;
$otp_verification = $this->request->getJSON()->otp;
$employeeData = $this->employeeModel->where('mobile', $mobile_number)->where('relationship', 'self')->first();