From d936ef6985621dea8273eff75d8322bd1f7c7273 Mon Sep 17 00:00:00 2001 From: Venba Date: Thu, 11 Jul 2024 06:30:55 +0000 Subject: [PATCH 1/4] FIX_ENROLLMENT_CLIENT_POLICYID_ADDED --- app/Controllers/EmployeeServiceController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/EmployeeServiceController.php b/app/Controllers/EmployeeServiceController.php index fdeca4c1..31e23163 100644 --- a/app/Controllers/EmployeeServiceController.php +++ b/app/Controllers/EmployeeServiceController.php @@ -1206,7 +1206,7 @@ class EmployeeServiceController extends AdminController // $file = ['id' => null,'client_id' => $client_id,'policy_id' => $client_policy_id,'action' => 'inception']; - $file = ['id' => null,'client_id' => $client_id,'policy_id' => $client_policy_id,'action' => 'inception','created_by' => get_session_userid()]; + $file = ['id' => null,'client_id' => $client_id,'policy_id' => $client_policy_id,'action' => 'inception','created_by' => get_session_userid(),'client_branch_id' => $params['client_branch_id']]; // dd($this->employeeModel->getLastQuery()); // Kint::dump($existing_famility_details);die(); $employee_data_group_by_family = data_group_by_family($existing_famility_details,$data_source = 'db'); From 18178a989dda92f021c41d6d33a19ce3babc8c8f Mon Sep 17 00:00:00 2001 From: Venba Date: Thu, 11 Jul 2024 06:33:49 +0000 Subject: [PATCH 2/4] FIX_ENROLLMENT_CLIENT_POLICYID_ADDED_IN_CON --- app/Controllers/EmployeeController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controllers/EmployeeController.php b/app/Controllers/EmployeeController.php index 4a7900d6..050df9cc 100644 --- a/app/Controllers/EmployeeController.php +++ b/app/Controllers/EmployeeController.php @@ -674,14 +674,14 @@ class EmployeeController extends AdminController // client_policy_id pull draft and enrolled status employees and proceed to calculatin and make entry in DB public function initiateManualEmployeesOnboardProcess($client_policy_id) { - $client_data = $this->clientPolicyModel->select('clients.client_name as client_name, policies.name as policy_name') + $client_data = $this->clientPolicyModel->select('clients.client_name as client_name, policies.name as policy_name,client_branch_id') ->join('clients', 'clients.id = client_policy.client_id') ->join('policies', 'policies.id = client_policy.policy_id') ->where('client_policy.id', $client_policy_id) ->first(); $empServiceController = new EmployeeServiceController(); - $res = $empServiceController->employeesOnboardPreprocess(['client_policy_id' => $client_policy_id]); + $res = $empServiceController->employeesOnboardPreprocess(['client_policy_id' => $client_policy_id,',client_branch_id' => $client_data['client_branch_id']]); // dd($res); $count = count($res); From 14102e3e493cea62564ed9a8c4d8ccc9e3c8c383 Mon Sep 17 00:00:00 2001 From: Venba Date: Thu, 11 Jul 2024 08:28:54 +0000 Subject: [PATCH 3/4] FIX_ADD_ON_VARIABLE_ADDED_SNDMAIL_HELPER --- app/Helpers/sendMailNotification.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Helpers/sendMailNotification.php b/app/Helpers/sendMailNotification.php index 84c8a13d..91bd81d9 100644 --- a/app/Helpers/sendMailNotification.php +++ b/app/Helpers/sendMailNotification.php @@ -182,7 +182,7 @@ class sendMailNotification $table_content .= $policy_name.''; $table_content .= $temp_data; $table_content .= '
NameMobile NumberSum InsureDate Of Birth
'; - + $Addon_list = []; if ($is_addon == 2 || $is_addon == 3) { $addon_list_array = [ 'policy_name'=>$policy_name, @@ -288,7 +288,7 @@ class sendMailNotification $table_content .= $policy_name.''; $table_content .= $temp_data; $table_content .= '
NameMobile NumberSum InsureDate Of Birth
'; - + $Addon_list = []; if ($is_addon == 2 || $is_addon == 3) { $addon_list_array = [ 'policy_name'=>$policy_name, @@ -395,7 +395,7 @@ class sendMailNotification $table_content .= $policy_name.''; $table_content .= $temp_data; $table_content .= '
NameMobile NumberSum InsureDate Of Birth
'; - + $Addon_list = []; if ($is_addon == 2 || $is_addon == 3) { $addon_list_array = [ 'policy_name'=>$policy_name, From 277c156035e9a41f9a70658a286b3c9b9e3d5e26 Mon Sep 17 00:00:00 2001 From: Venba Date: Thu, 11 Jul 2024 08:56:19 +0000 Subject: [PATCH 4/4] FIX_UNWANTED_CHAR_REMOVED --- app/Controllers/EmployeeController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/EmployeeController.php b/app/Controllers/EmployeeController.php index 050df9cc..db9b306c 100644 --- a/app/Controllers/EmployeeController.php +++ b/app/Controllers/EmployeeController.php @@ -681,7 +681,7 @@ class EmployeeController extends AdminController ->first(); $empServiceController = new EmployeeServiceController(); - $res = $empServiceController->employeesOnboardPreprocess(['client_policy_id' => $client_policy_id,',client_branch_id' => $client_data['client_branch_id']]); + $res = $empServiceController->employeesOnboardPreprocess(['client_policy_id' => $client_policy_id,'client_branch_id' => $client_data['client_branch_id']]); // dd($res); $count = count($res);