FEAT_WELL
This commit is contained in:
parent
0648ca425f
commit
410c7d0c6c
@ -792,6 +792,7 @@ class ClientController extends AdminController
|
||||
|
||||
$editData['RM'] = $this->userModel->where('is_active', 1)->findAll();
|
||||
$editData['tpa'] = $this->tpaBranchModel->getTpaBranchesWithTpaNames();
|
||||
$editData['tpa_list'] = $this->tpaModel->where('is_active', 1)->findAll();
|
||||
$editData['state'] = $this->stateModel->getAllStates();
|
||||
$editData['police'] = $this->policesModel->findAll();
|
||||
$editData['entity'] = $this->kycEntityTypeModel->findAll();
|
||||
@ -1439,7 +1440,9 @@ class ClientController extends AdminController
|
||||
$data['is_member_modify_allowed'] = $this->request->getPost('is_member_modify_allowed') ? 1 : 0;
|
||||
$data['enrolment_visibility'] = $this->request->getPost('enrolment_visibility') ? 1 : 0;
|
||||
$data['is_lgbtq'] = $this->request->getPost('is_lgbtq') ? 1 : 0;
|
||||
|
||||
$data['wellness_plan_id'] = $this->request->getPost('wellness_plan_id');
|
||||
$data['wellness_vendor_id'] = $this->request->getPost('wellness_vendor_id');
|
||||
$data['wellness_vendor_id'] = !empty($data['wellness_vendor_id']) ? $data['wellness_vendor_id'] : null;
|
||||
|
||||
|
||||
if ($policy_type_id == 1 || $policy_type_id == 2 || $policy_type_id == 6 || $policy_type_id == 7) {
|
||||
@ -1536,10 +1539,14 @@ class ClientController extends AdminController
|
||||
$data['cd_ac_pk'] = $this->request->getPost('cd_ac_no');
|
||||
$data['gst'] = $this->request->getPost('gst');
|
||||
$data['disclaimer'] = $this->request->getPost('disclaimer');
|
||||
$data['policy_start_date'] = change_date_format($this->request->getPost('policy_start_date'), 'd-m-Y', 'Y-m-d');
|
||||
$data['policy_end_date'] = change_date_format($this->request->getPost('policy_end_date'), 'd-m-Y', 'Y-m-d');
|
||||
$data['policy_start_date'] = change_date_format($this->request->getPost('policy_start_date'), 'd-m-Y', 'Y-m-d');
|
||||
$data['policy_end_date'] = change_date_format($this->request->getPost('policy_end_date'), 'd-m-Y', 'Y-m-d');
|
||||
$data['is_member_modify_allowed'] = $this->request->getPost('is_member_modify_allowed') ? 1 : 0;
|
||||
$data['is_lgbtq'] = $this->request->getPost('is_lgbtq') ? 1 : 0;
|
||||
$data['is_lgbtq'] = $this->request->getPost('is_lgbtq') ? 1 : 0;
|
||||
$data['wellness_plan_id'] = $this->request->getPost('wellness_plan_id');
|
||||
$data['wellness_vendor_id'] = $this->request->getPost('wellness_vendor_id');
|
||||
$data['wellness_vendor_id'] = !empty($data['wellness_vendor_id']) ? $data['wellness_vendor_id'] : null;
|
||||
|
||||
if ($data['inception_type'] == 2) {
|
||||
$data['open_date'] = change_date_format($this->request->getPost('open_date'), 'd-m-Y', 'Y-m-d');
|
||||
$data['close_date'] = change_date_format($this->request->getPost('close_date'), 'd-m-Y', 'Y-m-d');
|
||||
|
||||
@ -57,6 +57,8 @@ class ClientPolicyModel extends Model
|
||||
"placement_json",
|
||||
"policy_entry_from",
|
||||
"is_from_lead",
|
||||
"wellness_plan_id",
|
||||
"wellness_vendor_id",
|
||||
];
|
||||
|
||||
// Callbacks
|
||||
|
||||
@ -235,7 +235,7 @@ input:checked + .slider_blue::before {
|
||||
<div class="form-row" id="third" style="display: none; position: relative;top: 22px;">
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<label for="cd_ac_no">CD Account Number<span id="tpa_danger" class="text-danger">*</span></label>
|
||||
<label for="cd_ac_no">CD Account Number<span class="text-danger">*</span></label>
|
||||
<select class="form-control" id="cd_ac_no" name="cd_ac_no" required>
|
||||
<option value="">Select CD Account Number</option>
|
||||
<option value="add_cd">+ Add New CD</option>
|
||||
@ -243,10 +243,28 @@ input:checked + .slider_blue::before {
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<label for="gst_no">GST ( % )<span id="tpa_danger" class="text-danger">*</span></label>
|
||||
<label for="gst_no">GST ( % )<span class="text-danger">*</span></label>
|
||||
<input type="text" class="form-control" placeholder="GST (%)" id="gst_no" name="gst" required>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<label for="wellness_plan_id">Wellness Plan ID<span class="text-danger"></span></label>
|
||||
<input type="text" class="form-control" id="wellness_plan_id" name="wellness_plan_id">
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-4">
|
||||
<label for="wellness_vendor_id">Wellness Vendor ID<span class="text-danger"></span></label>
|
||||
<select class="form-control" id="wellness_vendor_id" name="wellness_vendor_id">
|
||||
<option value="0">Visit</option>
|
||||
<?php if(isset($tpa_list)) : ?>
|
||||
<?php foreach ($tpa_list as $value) { ?>
|
||||
<option value="<?= $value['id'] ?>">
|
||||
<?= $value['short_name'] ?></option>
|
||||
<?php } ?>
|
||||
<?php endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- <div class="form-group col-md-4 EB">
|
||||
<label class="switch" style="position: relative;top: 43px;left: 20px;">
|
||||
<input id="inception_type" type="checkbox" name="inception_type">
|
||||
@ -377,6 +395,7 @@ input:checked + .slider_blue::before {
|
||||
$("#tpa").select2();
|
||||
$("#base_policy").select2();
|
||||
$("#client_branch").select2();
|
||||
$("#wellness_vendor_id").select2();
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
@ -949,6 +968,8 @@ input:checked + .slider_blue::before {
|
||||
$('#reminder_date').val(res.data.reminder_date);
|
||||
$('#disclaimer').val(res.data.disclaimer);
|
||||
$('#gst_no').val(gst);
|
||||
$('#wellness_plan_id').val(res.data.wellness_plan_id);
|
||||
$('#wellness_vendor_id').val(res.data.wellness_vendor_id ?? 0).select2();
|
||||
$('#policy_status').val(checkDateStatus(res.data.policy_end_date));
|
||||
$('#policy_status_field').show();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user