FIX_ENROLMENT_SPELL_CHANGE

This commit is contained in:
velz 2024-08-01 11:50:36 +05:30
parent 880dcd1a68
commit 87ef964665
5 changed files with 16 additions and 16 deletions

View File

@ -2038,10 +2038,10 @@ class ClientController extends AdminController
if ($record['open_for_enrollment'] == 0) { if ($record['open_for_enrollment'] == 0) {
$open_for_enrollment_update_value = 1; $open_for_enrollment_update_value = 1;
$message = 'Enrollment Opened Successfully'; $message = 'Enrolment Opened Successfully';
} else if ($record['open_for_enrollment'] == 1) { } else if ($record['open_for_enrollment'] == 1) {
$open_for_enrollment_update_value = 0; $open_for_enrollment_update_value = 0;
$message = 'Enrollment Closed Successfully'; $message = 'Enrolment Closed Successfully';
} }
$data = $this->policesModel->getPolicyPremium($record['policy_id']); $data = $this->policesModel->getPolicyPremium($record['policy_id']);
@ -2219,7 +2219,7 @@ class ClientController extends AdminController
CASE CASE
WHEN client_policy.inception_type = 1 THEN "File Upload" WHEN client_policy.inception_type = 1 THEN "File Upload"
WHEN client_policy.inception_type = 2 THEN "Enrollment" WHEN client_policy.inception_type = 2 THEN "Enrolment"
ELSE "n/a" ELSE "n/a"
END as inception_type, END as inception_type,

View File

@ -560,7 +560,7 @@ class EmployeeRestController extends AdminController
// Set the header for download // Set the header for download
$filename = $empData[0]['policy_name'].'-Enrollment.xlsx'; $filename = $empData[0]['policy_name'].'-Enrolment.xlsx';
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
header('Content-Disposition: attachment;filename="' . $filename . '"'); header('Content-Disposition: attachment;filename="' . $filename . '"');
header('Cache-Control: max-age=0'); header('Cache-Control: max-age=0');

View File

@ -129,7 +129,7 @@
<th class="font-weight-medium"><label> Insurer </label></th> <th class="font-weight-medium"><label> Insurer </label></th>
<th class="font-weight-medium"><label> TPA </label></th> <th class="font-weight-medium"><label> TPA </label></th>
<th class="font-weight-medium"><label> Policy Validity </label></th> <th class="font-weight-medium"><label> Policy Validity </label></th>
<th class="font-weight-medium"><label> Enrollment Status </label></th> <th class="font-weight-medium"><label> Enrolment Status </label></th>
<th class="font-weight-medium"><label> Policy Status </label></th> <th class="font-weight-medium"><label> Policy Status </label></th>
</tr> </tr>
</thead> </thead>

View File

@ -312,13 +312,13 @@
if (item.open_for_enrollment == 1) { if (item.open_for_enrollment == 1) {
enrollmentStatus = '<a href="#" data-id="' + item.id + '" id="' + item.policy_id + enrollmentStatus = '<a href="#" data-id="' + item.id + '" id="' + item.policy_id +
'" class="btnOpenEnroll" data-toggle="tooltip" data-placement="left" title="Click To Close Enrollment">Open</a>' '" class="btnOpenEnroll" data-toggle="tooltip" data-placement="left" title="Click To Close Enrolment">Open</a>'
} else if (item.open_for_enrollment == 0) { } else if (item.open_for_enrollment == 0) {
enrollmentStatus = enrollmentStatus =
'<a href="#" data-toggle="tooltip" data-placement="top" title="Click To Open Enrollment" data-id="' + '<a href="#" data-toggle="tooltip" data-placement="top" title="Click To Open Enrolment" data-id="' +
item.id + '" id="' + item.policy_id + '" class="btnOpenEnroll">Closed</a>' item.id + '" id="' + item.policy_id + '" class="btnOpenEnroll">Closed</a>'
} }
@ -551,7 +551,7 @@
if (item.open_for_enrollment == 1) { if (item.open_for_enrollment == 1) {
enrollmentStatus = enrollmentStatus =
'<a data-toggle="tooltip" data-placement="top" title="Click To Close Enrollment" href="#" data-id="' + '<a data-toggle="tooltip" data-placement="top" title="Click To Close Enrolment" href="#" data-id="' +
item.id + '" id="' + item.policy_id + item.id + '" id="' + item.policy_id +
'" class="btnOpenEnroll">Open</a>' '" class="btnOpenEnroll">Open</a>'
@ -559,7 +559,7 @@
} else if (item.open_for_enrollment == 0) { } else if (item.open_for_enrollment == 0) {
enrollmentStatus = enrollmentStatus =
'<a data-toggle="tooltip" data-placement="top" title="Click To Open Enrollment" href="#" data-id="' + '<a data-toggle="tooltip" data-placement="top" title="Click To Open Enrolment" href="#" data-id="' +
item.id + '" id="' + item.policy_id + item.id + '" id="' + item.policy_id +
'" class="btnOpenEnroll">Closed</a>' '" class="btnOpenEnroll">Closed</a>'
@ -982,7 +982,7 @@
$('.btnOpenEnroll').each(function(index, element) { $('.btnOpenEnroll').each(function(index, element) {
if ($(element).data('id') == client_policy_id) { if ($(element).data('id') == client_policy_id) {
$(element).html( $(element).html(
'<a data-toggle="tooltip" data-placement="top" title="Click To Close Enrollment" href="#" data-id="' + '<a data-toggle="tooltip" data-placement="top" title="Click To Close Enrolment" href="#" data-id="' +
res.client_policy_data.id + res.client_policy_data.id +
'" id="' + res.client_policy_data '" id="' + res.client_policy_data
.policy_id + .policy_id +
@ -995,7 +995,7 @@
$('.btnOpenEnroll').each(function(index, element) { $('.btnOpenEnroll').each(function(index, element) {
if ($(element).data('id') == client_policy_id) { if ($(element).data('id') == client_policy_id) {
$(element).html( $(element).html(
'<a data-toggle="tooltip" data-placement="top" title="Click To Open Enrollment" href="#" data-id="' + '<a data-toggle="tooltip" data-placement="top" title="Click To Open Enrolment" href="#" data-id="' +
res.client_policy_data.id + res.client_policy_data.id +
'" id="' + res.client_policy_data '" id="' + res.client_policy_data
.policy_id + .policy_id +

View File

@ -193,7 +193,7 @@
<div class="modal-dialog modal-dialog-centered"> <div class="modal-dialog modal-dialog-centered">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h4 class="modal-title" id="myCenterModalLabel">Upload Enrollment File</h4> <h4 class="modal-title" id="myCenterModalLabel">Upload Enrolment File</h4>
<button type="button" id="close_btn" class="close" data-dismiss="modal" aria-hidden="true">×</button> <button type="button" id="close_btn" class="close" data-dismiss="modal" aria-hidden="true">×</button>
</div> </div>
<div class="modal-body"> <div class="modal-body">
@ -408,25 +408,25 @@
extend: 'copy', extend: 'copy',
text: '<i class="fa fa-copy"></i>', text: '<i class="fa fa-copy"></i>',
titleAttr: 'Copy', titleAttr: 'Copy',
filename: 'Enrollment List' filename: 'Enrolment List'
}, },
{ {
extend: 'print', extend: 'print',
text: '<i class="fa fa-print"></i>', text: '<i class="fa fa-print"></i>',
titleAttr: 'Print', titleAttr: 'Print',
filename: 'Enrollment List' filename: 'Enrolment List'
}, },
{ {
extend: 'pdf', extend: 'pdf',
text: '<i class="fa fa-file-pdf"></i>', text: '<i class="fa fa-file-pdf"></i>',
titleAttr: 'PDF', titleAttr: 'PDF',
filename: 'Enrollment List' filename: 'Enrolment List'
}, },
{ {
extend: 'csv', extend: 'csv',
text: '<i class="fa fa-file-csv"></i>', text: '<i class="fa fa-file-csv"></i>',
titleAttr: 'CSV', titleAttr: 'CSV',
filename: 'Enrollment List' filename: 'Enrolment List'
} }
], ],
initComplete: function() { initComplete: function() {