CHNAGE_SELF_ECARD : RV
This commit is contained in:
parent
393372f73a
commit
efe5f7560d
@ -4416,7 +4416,7 @@ class EmpDataServiceController extends BaseController
|
||||
employees.email_corporate,
|
||||
employees.name,
|
||||
employees.mobile,
|
||||
employees.basic_cover_si,
|
||||
employee_polices.basic_cover_si,
|
||||
|
||||
cp.policy_type_id,
|
||||
cp.is_addon,
|
||||
@ -4438,7 +4438,7 @@ class EmpDataServiceController extends BaseController
|
||||
if ($emp_details) {
|
||||
$this->myLogger->logme('error', 'sendMailForDownloadingECard - Processing employee_policy_id: {id}', ['id' => $id]);
|
||||
|
||||
if (!empty($emp_details['email_corporate'])) {
|
||||
if (!empty($emp_details['email_corporate']) && $emp_details['relationship'] === 'Self') {
|
||||
|
||||
$params = [
|
||||
'rand_string' => $emp_details['rand_string'],
|
||||
|
||||
@ -113,7 +113,7 @@ class sendMailNotification
|
||||
|
||||
$subject = $cleanedText;
|
||||
|
||||
$link = generate_download_link($rand_string);
|
||||
$link = generate_download_link($rand_string).'/1';
|
||||
|
||||
$app_link = $_ENV['App_Url'];
|
||||
$name = $get_emp_email_and_other_details['name'];
|
||||
|
||||
@ -160,7 +160,7 @@
|
||||
<a href="<?= base_url('download-e-card/'). $employee['rand_string'] ?>" class="dropdown-item" target="_blank"><i class="mdi mdi-eye mr-2 text-muted font-18 vertical-middle"></i>View E-Card</a>
|
||||
<?php } ?>
|
||||
|
||||
<?php if(in_array($employee['policy_type_id'], [2,3,4,5]) && $employee['email_corporate'] != '' && $employee['emp_status'] == 'active' && $employee['status'] == 'active' && !empty($employee['tpa_id'])) { ?>
|
||||
<?php if($employee['relationship'] == 'Self' && in_array($employee['policy_type_id'], [2,3,4,5]) && $employee['email_corporate'] != '' && $employee['emp_status'] == 'active' && $employee['status'] == 'active' && !empty($employee['tpa_id'])) { ?>
|
||||
<a class="dropdown-item" onclick="send_mail_for_individual_employee_ecard('<?= $employee['id'];?>')" ><i class="mdi mdi-email-alert mr-2 text-muted font-18 vertical-middle"></i>Send E-Card Mail</a>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user