CHANGE_BDS_CHANGE
This commit is contained in:
parent
c331f66c68
commit
47ad26a3a4
@ -701,11 +701,11 @@ class PolicyTransactionController extends BaseController
|
|||||||
nhance_branch.branch_name as nhance_branch_name,
|
nhance_branch.branch_name as nhance_branch_name,
|
||||||
rm.first_name AS rm_name
|
rm.first_name AS rm_name
|
||||||
')
|
')
|
||||||
->join('user_teams', 'user_profiles.id = user_teams.user_id')
|
// ->join('user_teams', 'user_profiles.id = user_teams.user_id')
|
||||||
->join('nhance_branch', 'user_profiles.nhance_branch_id = nhance_branch.id','left')
|
->join('nhance_branch', 'user_profiles.nhance_branch_id = nhance_branch.id','left')
|
||||||
->join('user_profiles AS rm', 'user_profiles.rm_id = rm.id', 'left')
|
->join('user_profiles AS rm', 'user_profiles.rm_id = rm.id', 'left')
|
||||||
->where('user_teams.team_id', 5)
|
// ->where('user_teams.team_id', 5)
|
||||||
->where('user_teams.is_active', 1)
|
// ->where('user_teams.is_active', 1)
|
||||||
->where('user_profiles.is_active', 1)
|
->where('user_profiles.is_active', 1)
|
||||||
->groupBy('user_profiles.id', 'asc')
|
->groupBy('user_profiles.id', 'asc')
|
||||||
->findAll();
|
->findAll();
|
||||||
@ -727,7 +727,7 @@ class PolicyTransactionController extends BaseController
|
|||||||
->join('user_teams', 'user_profiles.id = user_teams.user_id')
|
->join('user_teams', 'user_profiles.id = user_teams.user_id')
|
||||||
->join('nhance_branch', 'user_profiles.nhance_branch_id = nhance_branch.id', 'left')
|
->join('nhance_branch', 'user_profiles.nhance_branch_id = nhance_branch.id', 'left')
|
||||||
->join('user_profiles AS rm', 'user_profiles.rm_id = rm.id', 'left')
|
->join('user_profiles AS rm', 'user_profiles.rm_id = rm.id', 'left')
|
||||||
->where('user_profiles.role', 3)
|
// ->where('user_profiles.role', 3)
|
||||||
->where('user_profiles.is_active', 1)
|
->where('user_profiles.is_active', 1)
|
||||||
->groupBy('user_profiles.id', 'asc')
|
->groupBy('user_profiles.id', 'asc')
|
||||||
->findAll();
|
->findAll();
|
||||||
@ -970,8 +970,8 @@ class PolicyTransactionController extends BaseController
|
|||||||
'valid_date' => 'Please provide a valid D.O.E date.',
|
'valid_date' => 'Please provide a valid D.O.E date.',
|
||||||
'regex_match' => 'The D.O.E date format is incorrect. '
|
'regex_match' => 'The D.O.E date format is incorrect. '
|
||||||
]],
|
]],
|
||||||
'emp_count' => ['label' => 'No of Insured', 'rules' => 'permit_empty|numeric', 'errors' => [
|
'emp_count' => ['label' => 'No of Employees', 'rules' => 'permit_empty|numeric', 'errors' => [
|
||||||
'numeric' => 'No of Insured must contain only numbers.'
|
'numeric' => 'No of Employees must contain only numbers.'
|
||||||
]],
|
]],
|
||||||
'dependent_count' => ['label' => 'No of Dependents', 'rules' => 'permit_empty|numeric', 'errors' => [
|
'dependent_count' => ['label' => 'No of Dependents', 'rules' => 'permit_empty|numeric', 'errors' => [
|
||||||
'numeric' => 'No of Dependents must contain only numbers.'
|
'numeric' => 'No of Dependents must contain only numbers.'
|
||||||
@ -2491,9 +2491,9 @@ class PolicyTransactionController extends BaseController
|
|||||||
'errors' => ['valid_date' => 'Please provide a valid Endorsement Effective Date.']
|
'errors' => ['valid_date' => 'Please provide a valid Endorsement Effective Date.']
|
||||||
],
|
],
|
||||||
'emp_count' => [
|
'emp_count' => [
|
||||||
'label' => 'No of Insured',
|
'label' => 'No of Employees',
|
||||||
'rules' => 'permit_empty|numeric',
|
'rules' => 'permit_empty|numeric',
|
||||||
'errors' => ['numeric' => 'No of Insured must be a number.']
|
'errors' => ['numeric' => 'No of Employees must be a number.']
|
||||||
],
|
],
|
||||||
'dependent_count' => [
|
'dependent_count' => [
|
||||||
'label' => 'No of Dependents',
|
'label' => 'No of Dependents',
|
||||||
|
|||||||
@ -1063,15 +1063,21 @@
|
|||||||
->where('policy_transaction.is_active', 1)
|
->where('policy_transaction.is_active', 1)
|
||||||
->where('policy_transaction.action_type', 'inception');
|
->where('policy_transaction.action_type', 'inception');
|
||||||
|
|
||||||
if (
|
// if (
|
||||||
(!in_array(get_role_id(), [1, 5])) &&
|
// (!in_array(get_role_id(), [1, 5])) &&
|
||||||
!(
|
// !(
|
||||||
in_array(MANAGEMENT_TEAM_ID, user_team()) ||
|
// in_array(MANAGEMENT_TEAM_ID, user_team()) ||
|
||||||
in_array(FINANCE_TEAM_ID, user_team()) ||
|
// in_array(FINANCE_TEAM_ID, user_team()) ||
|
||||||
in_array(BUSINESS_TEAM_ID, user_team())
|
// in_array(BUSINESS_TEAM_ID, user_team())
|
||||||
)
|
// )
|
||||||
) {
|
// ) {
|
||||||
if (get_role_id() == 4 && in_array(POS_TEAM_ID, user_team())) {
|
// if (get_role_id() == 4 && in_array(POS_TEAM_ID, user_team())) {
|
||||||
|
// $builder->where('policy_transaction.created_by', get_session_userid());
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
if ((!in_array(get_role_id(), [1, 5]))) {
|
||||||
|
if (in_array(POS_TEAM_ID, user_team())) {
|
||||||
$builder->where('policy_transaction.created_by', get_session_userid());
|
$builder->where('policy_transaction.created_by', get_session_userid());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1165,20 +1171,27 @@
|
|||||||
->where('policy_transaction.is_active', 1)
|
->where('policy_transaction.is_active', 1)
|
||||||
->where('policy_transaction.action_type !=', 'inception');
|
->where('policy_transaction.action_type !=', 'inception');
|
||||||
|
|
||||||
if (
|
// if (
|
||||||
(!in_array(get_role_id(), [1, 5])) &&
|
// (!in_array(get_role_id(), [1, 5])) &&
|
||||||
!(
|
// !(
|
||||||
in_array(MANAGEMENT_TEAM_ID, user_team()) ||
|
// in_array(MANAGEMENT_TEAM_ID, user_team()) ||
|
||||||
in_array(FINANCE_TEAM_ID, user_team()) ||
|
// in_array(FINANCE_TEAM_ID, user_team()) ||
|
||||||
in_array(BUSINESS_TEAM_ID, user_team())
|
// in_array(BUSINESS_TEAM_ID, user_team())
|
||||||
)
|
// )
|
||||||
) {
|
// ) {
|
||||||
if (get_role_id() == 4 && in_array(POS_TEAM_ID, user_team())) {
|
// if (get_role_id() == 4 && in_array(POS_TEAM_ID, user_team())) {
|
||||||
|
// $builder->where('policy_transaction.created_by', get_session_userid());
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
if ((!in_array(get_role_id(), [1, 5]))) {
|
||||||
|
if (in_array(POS_TEAM_ID, user_team())) {
|
||||||
$builder->where('policy_transaction.created_by', get_session_userid());
|
$builder->where('policy_transaction.created_by', get_session_userid());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($start_date != 0 && $end_date != 0 && $date_type != 0) {
|
if ($start_date != 0 && $end_date != 0 && $date_type != 0) {
|
||||||
|
|
||||||
$this->validateDateType($date_type);
|
$this->validateDateType($date_type);
|
||||||
@ -3067,15 +3080,21 @@
|
|||||||
$conditions = ""; // start safely
|
$conditions = ""; // start safely
|
||||||
|
|
||||||
// 1. Role-based restrictions
|
// 1. Role-based restrictions
|
||||||
if (
|
// if (
|
||||||
(!in_array(get_role_id(), [1, 5])) &&
|
// (!in_array(get_role_id(), [1, 5])) &&
|
||||||
!(
|
// !(
|
||||||
in_array(MANAGEMENT_TEAM_ID, user_team()) ||
|
// in_array(MANAGEMENT_TEAM_ID, user_team()) ||
|
||||||
in_array(FINANCE_TEAM_ID, user_team()) ||
|
// in_array(FINANCE_TEAM_ID, user_team()) ||
|
||||||
in_array(BUSINESS_TEAM_ID, user_team())
|
// in_array(BUSINESS_TEAM_ID, user_team())
|
||||||
)
|
// )
|
||||||
) {
|
// ) {
|
||||||
if (get_role_id() == 4 && in_array(POS_TEAM_ID, user_team())) {
|
// if (get_role_id() == 4 && in_array(POS_TEAM_ID, user_team())) {
|
||||||
|
// $conditions .= " AND pt.created_by = " . get_session_userid();
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
if ((!in_array(get_role_id(), [1, 5]))) {
|
||||||
|
if (in_array(POS_TEAM_ID, user_team())) {
|
||||||
$conditions .= " AND pt.created_by = " . get_session_userid();
|
$conditions .= " AND pt.created_by = " . get_session_userid();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,26 +39,28 @@
|
|||||||
<input type="hidden" name="client_id" id="client_id_kyc" value="<?= isset($client['id']) ? $client['id'] : '' ?>"/>
|
<input type="hidden" name="client_id" id="client_id_kyc" value="<?= isset($client['id']) ? $client['id'] : '' ?>"/>
|
||||||
<input type="hidden" name="kyc_doc_type_id" value="" />
|
<input type="hidden" name="kyc_doc_type_id" value="" />
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
<div id="additional_docs_rows">
|
||||||
|
<div class="form-row additional-doc-row" data-row-index="0">
|
||||||
|
<div class="form-group col-md-4">
|
||||||
|
<label>Document Name<span class="text-danger">*</span></label>
|
||||||
|
<input type="text" class="form-control other-doc-name-field" placeholder="Document Name" name="other_docs_name[]" required>
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-4">
|
||||||
|
<label>File<span class="text-danger">*</span></label>
|
||||||
|
<input class="form-control other-doc-file-field" type="file" name="file_name[]" required accept=".pdf, .jpeg, .jpg, .png">
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-4" style="<?= isset($client['id']) ? 'margin-top: 41px;' : 'margin-top: 30px;' ?>">
|
||||||
|
<button type="button" class="btn btn-outline-danger remove-additional-doc-row" style="display:none;">Remove</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-12">
|
||||||
<label for="emp_code">Document Name<span
|
<button type="button" class="btn btn-outline-primary waves-effect waves-light mr-1" id="add_more_other_docs">Add More</button>
|
||||||
class="text-danger">*</span></label>
|
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1" id="btnSubmit">Save</button>
|
||||||
<input type="text" class="form-control" id="other_docs_name" placeholder="Document Name" name="other_docs_name" required>
|
|
||||||
</div>
|
|
||||||
<div class="form-group col-md-4">
|
|
||||||
<label for="kyc_docs">File<span
|
|
||||||
class="text-danger">*</span></label>
|
|
||||||
<input class="form-control" type="file" name="file_name"
|
|
||||||
id="kyc_docs_file"
|
|
||||||
required accept=".pdf, .jpeg, .jpg, .png">
|
|
||||||
</div>
|
|
||||||
<!-- <div class="form-group col-md-4 align-self-end"> -->
|
|
||||||
<div class="form-group col-md-4" style="<?= isset($client['id']) ? 'margin-top: 41px;' : 'margin-top: 30px;' ?>">
|
|
||||||
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1"id="btnSubmit">Save</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
@ -94,6 +96,24 @@
|
|||||||
|
|
||||||
var kycPrimaryKey = $('#client_id_kyc').val();
|
var kycPrimaryKey = $('#client_id_kyc').val();
|
||||||
|
|
||||||
|
function getAdditionalDocRowTemplate(index) {
|
||||||
|
return `
|
||||||
|
<div class="form-row additional-doc-row" data-row-index="${index}">
|
||||||
|
<div class="form-group col-md-4">
|
||||||
|
<label>Document Name<span class="text-danger">*</span></label>
|
||||||
|
<input type="text" class="form-control other-doc-name-field" placeholder="Document Name" name="other_docs_name[]" required>
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-4">
|
||||||
|
<label>File<span class="text-danger">*</span></label>
|
||||||
|
<input class="form-control other-doc-file-field" type="file" name="file_name[]" required accept=".pdf, .jpeg, .jpg, .png">
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-4" style="<?= isset($client['id']) ? 'margin-top: 41px;' : 'margin-top: 30px;' ?>">
|
||||||
|
<button type="button" class="btn btn-outline-danger remove-additional-doc-row">Remove</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
kycPrimaryKey = $('#kyc_PrimaryKey').val();
|
kycPrimaryKey = $('#kyc_PrimaryKey').val();
|
||||||
@ -195,6 +215,20 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(document).on('click', '#add_more_other_docs', function () {
|
||||||
|
var nextIndex = $('#additional_docs_rows .additional-doc-row').length;
|
||||||
|
$('#additional_docs_rows').append(getAdditionalDocRowTemplate(nextIndex));
|
||||||
|
$('#additional_docs_rows .remove-additional-doc-row').show();
|
||||||
|
});
|
||||||
|
|
||||||
|
$(document).on('click', '.remove-additional-doc-row', function () {
|
||||||
|
$(this).closest('.additional-doc-row').remove();
|
||||||
|
|
||||||
|
if ($('#additional_docs_rows .additional-doc-row').length <= 1) {
|
||||||
|
$('#additional_docs_rows .remove-additional-doc-row').hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
/*** for Others documents form submit ***/
|
/*** for Others documents form submit ***/
|
||||||
@ -202,8 +236,35 @@
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
var isValid = $('#kyc_form').parsley().validate();
|
var isValid = $('#kyc_form').parsley().validate();
|
||||||
var rowHtml = '';
|
|
||||||
var form_action = '';
|
var form_action = '';
|
||||||
|
var allowedExtensions = ['pdf', 'png', 'jpeg', 'jpg'];
|
||||||
|
|
||||||
|
$('#kyc_form .other-doc-name-field, #kyc_form .other-doc-file-field').removeClass('is-invalid');
|
||||||
|
|
||||||
|
$('#additional_docs_rows .additional-doc-row').each(function() {
|
||||||
|
var docNameField = $(this).find('.other-doc-name-field');
|
||||||
|
var fileField = $(this).find('.other-doc-file-field');
|
||||||
|
var docNameValue = (docNameField.val() || '').trim();
|
||||||
|
var selectedFile = fileField[0].files[0];
|
||||||
|
|
||||||
|
if (docNameValue === '' || !selectedFile) {
|
||||||
|
isValid = false;
|
||||||
|
if (docNameValue === '') {
|
||||||
|
docNameField.addClass('is-invalid');
|
||||||
|
}
|
||||||
|
if (!selectedFile) {
|
||||||
|
fileField.addClass('is-invalid');
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var fileExtension = selectedFile.name.split('.').pop().toLowerCase();
|
||||||
|
if (allowedExtensions.indexOf(fileExtension) === -1) {
|
||||||
|
isValid = false;
|
||||||
|
fileField.addClass('is-invalid');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
if (isValid) {
|
if (isValid) {
|
||||||
|
|
||||||
if(kycPrimaryKey === ''){
|
if(kycPrimaryKey === ''){
|
||||||
@ -240,6 +301,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$('#kyc_form').trigger('reset');
|
$('#kyc_form').trigger('reset');
|
||||||
|
$('#additional_docs_rows .additional-doc-row').not(':first').remove();
|
||||||
|
$('#additional_docs_rows .remove-additional-doc-row').hide();
|
||||||
},
|
},
|
||||||
error: function(xhr, status, error) {
|
error: function(xhr, status, error) {
|
||||||
console.error(xhr.responseText);
|
console.error(xhr.responseText);
|
||||||
@ -274,6 +337,8 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
} else {
|
||||||
|
toastr.warning('Please fill all Additional Document rows and upload valid files.', 'Warning');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -291,12 +356,14 @@
|
|||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
|
|
||||||
var kyc_id = $(this).attr('data-id');
|
var kyc_id = $(this).attr('data-id');
|
||||||
$.get('<?php echo base_url('client/kyc/delete/');?>'+kyc_id, function (data) {
|
var client_id = $(this).attr('data-client-id') || $('#client_id_kyc').val();
|
||||||
// console.log('kyc-'+ kyc_id)
|
$.get('<?php echo base_url('client/kyc/delete/');?>'+kyc_id, { client_id: client_id }, function (data) {
|
||||||
// console.log(data)
|
if(data && data.status){
|
||||||
if(data){
|
if (data.data) {
|
||||||
$('#form_'+kyc_id).show();
|
$('#tbody').empty();
|
||||||
$('#name_'+kyc_id).hide();
|
$('#tbody').append(data.data);
|
||||||
|
}
|
||||||
|
toastr.success('Document deleted successfully', 'Success');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -317,11 +384,17 @@
|
|||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
|
|
||||||
var kyc_id = $(this).attr('data-id');
|
var kyc_id = $(this).attr('data-id');
|
||||||
$.get('<?php echo base_url('util/kyc-other-docs-delete/');?>'+kyc_id, function (data) {
|
var client_id = $(this).attr('data-client-id') || $('#client_id_kyc').val();
|
||||||
// console.log('kyc-'+ kyc_id)
|
$.get('<?php echo base_url('util/kyc-other-docs-delete/');?>'+kyc_id, { client_id: client_id }, function (data) {
|
||||||
if(data){
|
if(data && data.status){
|
||||||
|
if (data.data) {
|
||||||
|
$('#other_docs').empty();
|
||||||
|
$('#other_docs').append(data.data);
|
||||||
|
} else {
|
||||||
$('#kyc-'+ kyc_id).remove();
|
$('#kyc-'+ kyc_id).remove();
|
||||||
}
|
}
|
||||||
|
toastr.success('Document deleted successfully', 'Success');
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -2,9 +2,17 @@
|
|||||||
<?php foreach ($data as $index => $item): ?>
|
<?php foreach ($data as $index => $item): ?>
|
||||||
<tr id="kyc-<?= $item['id'] ?>">
|
<tr id="kyc-<?= $item['id'] ?>">
|
||||||
<!-- <td><?= $index + 1; ?></td> -->
|
<!-- <td><?= $index + 1; ?></td> -->
|
||||||
<td><?= esc($item['file_name']); ?></td>
|
|
||||||
<td><?= esc($item['other_docs_name']); ?></td>
|
<td><?= esc($item['other_docs_name']); ?></td>
|
||||||
<td><a id="download_<?= esc($item['id']); ?>" data-id="<?= esc($item['id']); ?>" class="mdi mdi-download" style="font-size:18px;" download title="Download file"></a></td>
|
<td><?= esc($item['file_name']); ?></td>
|
||||||
|
<td>
|
||||||
|
<a href="<?= base_url('download-kyc-docs/') . ($item['file_name'] ?? '') ?>" data-id="<?= esc($item['id']); ?>" class="mdi mdi-download mr-2" style="font-size:18px;" target="_blank"></a>
|
||||||
|
<i
|
||||||
|
data-id="<?= esc($item['id']); ?>"
|
||||||
|
data-client-id="<?= esc($client_id); ?>"
|
||||||
|
class="mdi mdi-delete btnKycOtherDelete"
|
||||||
|
style="font-size:18px; cursor:pointer;"
|
||||||
|
></i>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
|
|||||||
@ -17,7 +17,17 @@
|
|||||||
<td></td>
|
<td></td>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<td><?= esc($item['upload_doc_name']); ?></td>
|
<td><?= esc($item['upload_doc_name']); ?></td>
|
||||||
<td><a id="download_<?= esc($item['id']); ?>" data-id="<?= esc($item['id']); ?>" class="mdi mdi-download" style="font-size:18px;" download></a></td>
|
<td>
|
||||||
|
<a href="<?= base_url('download-kyc-docs/') . ($item['upload_doc_name'] ?? '') ?>" data-id="<?= esc($item['id']); ?>" class="mdi mdi-download mr-2" style="font-size:18px;" target="_blank"></a>
|
||||||
|
<?php if (!empty($item['upload_doc_name']) && !empty($item['client_kyc_id'])): ?>
|
||||||
|
<i
|
||||||
|
data-id="<?= esc($item['client_kyc_id']); ?>"
|
||||||
|
data-client-id="<?= esc($client_id); ?>"
|
||||||
|
class="mdi mdi-delete btnKycDelete"
|
||||||
|
style="font-size:18px; cursor:pointer;"
|
||||||
|
></i>
|
||||||
|
<?php endif; ?>
|
||||||
|
</td>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|||||||
@ -766,7 +766,7 @@
|
|||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<div class="form-group col-md-3" id="no_of_insured_div">
|
<div class="form-group col-md-3" id="no_of_insured_div">
|
||||||
<label for="addon_policy">No of Insured<span id="base_danger"class="text-danger"></span></label>
|
<label for="addon_policy">No of Employees<span id="base_danger"class="text-danger"></span></label>
|
||||||
<input type="text" class="form-control" id="emp_count" name="emp_count" placeholder="Enter Employeee" onkeypress="return onlyNumbers(event)">
|
<input type="text" class="form-control" id="emp_count" name="emp_count" placeholder="Enter Employeee" onkeypress="return onlyNumbers(event)">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -661,6 +661,11 @@ function getAddPage(){
|
|||||||
|
|
||||||
if(view == 1){
|
if(view == 1){
|
||||||
runInceptionAddFlowFromList();
|
runInceptionAddFlowFromList();
|
||||||
|
setTimeout(() => {
|
||||||
|
var backUrl = '<?= base_url("policy_tranction/inception/list"); ?>';
|
||||||
|
var backButton = `<a href="${backUrl}" aria-label="Back to list"><i class="mdi mdi-arrow-left" style="font-size: 17px;"></i></a>`;
|
||||||
|
updateNavTitle('Add Policy', backButton);
|
||||||
|
}, 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user