MERGE_GMC_SRI
This commit is contained in:
commit
5000209b55
@ -4834,7 +4834,7 @@ class ClientController extends AdminController
|
|||||||
return $this->respond([
|
return $this->respond([
|
||||||
'status' => false,
|
'status' => false,
|
||||||
'code' => 404,
|
'code' => 404,
|
||||||
'message' => 'No data found',
|
'message' => 'No Employee found',
|
||||||
'param' => $param,
|
'param' => $param,
|
||||||
'type' => $type,
|
'type' => $type,
|
||||||
'dataForClientAndInsurer' => $dataForClientAndInsurer,
|
'dataForClientAndInsurer' => $dataForClientAndInsurer,
|
||||||
@ -4843,7 +4843,7 @@ class ClientController extends AdminController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTheEmpDataForClaimSearchByMobile($param, $type = 'mobile', $client_policy_id = null)
|
public function getTheEmpDataForClaimSearchByMobile($param, $type = 'mobile', $client_policy_id = null, $client_id = null)
|
||||||
{
|
{
|
||||||
$field_name = 'employees.' . $type;
|
$field_name = 'employees.' . $type;
|
||||||
|
|
||||||
@ -4866,8 +4866,8 @@ class ClientController extends AdminController
|
|||||||
employee_polices.tpa_id AS tpa_no,
|
employee_polices.tpa_id AS tpa_no,
|
||||||
employee_polices.client_policy_id AS policy_id
|
employee_polices.client_policy_id AS policy_id
|
||||||
")
|
")
|
||||||
->join('clients', 'client_policy.client_id = clients.id', 'left')
|
->join('clients', 'client_policy.client_id = clients.id')
|
||||||
->join('insurers', 'client_policy.insurer_id = insurers.id', 'left')
|
->join('insurers', 'client_policy.insurer_id = insurers.id')
|
||||||
->join('tpa', 'client_policy.tpa_id = tpa.id', 'left')
|
->join('tpa', 'client_policy.tpa_id = tpa.id', 'left')
|
||||||
->join('employees', 'clients.id = employees.client_id')
|
->join('employees', 'clients.id = employees.client_id')
|
||||||
->join('employee_polices', 'employees.id = employee_polices.employee_id')
|
->join('employee_polices', 'employees.id = employee_polices.employee_id')
|
||||||
@ -4879,6 +4879,10 @@ class ClientController extends AdminController
|
|||||||
->where('employee_polices.is_active', 1)
|
->where('employee_polices.is_active', 1)
|
||||||
->where($field_name, $param);
|
->where($field_name, $param);
|
||||||
|
|
||||||
|
if (!empty($client_id)) {
|
||||||
|
$query->where('employees.client_id', $client_id);
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($client_policy_id)) {
|
if (!empty($client_policy_id)) {
|
||||||
$query->where('employee_polices.client_policy_id', $client_policy_id);
|
$query->where('employee_polices.client_policy_id', $client_policy_id);
|
||||||
}
|
}
|
||||||
@ -4902,7 +4906,7 @@ class ClientController extends AdminController
|
|||||||
|
|
||||||
if(!empty($data) && count($data) > 0){
|
if(!empty($data) && count($data) > 0){
|
||||||
|
|
||||||
$memberData = $this->employeeModel->getEmployeeByEmployeeCode($data['emp_code'], $data['policy_id']);
|
$memberData = $this->employeeModel->getEmployeeByEmployeeCode($data['emp_code'], $data['policy_id'], $client_id);
|
||||||
|
|
||||||
$acms = $this->clientRMModel
|
$acms = $this->clientRMModel
|
||||||
->select('user_profiles.id, user_profiles.first_name')
|
->select('user_profiles.id, user_profiles.first_name')
|
||||||
@ -4935,7 +4939,7 @@ class ClientController extends AdminController
|
|||||||
return $this->respond([
|
return $this->respond([
|
||||||
'status' => false,
|
'status' => false,
|
||||||
'code' => 404,
|
'code' => 404,
|
||||||
'message' => 'No data found',
|
'message' => 'No Employee found',
|
||||||
'param' => $param,
|
'param' => $param,
|
||||||
'client_policy_id' => $client_policy_id,
|
'client_policy_id' => $client_policy_id,
|
||||||
'type' => $type,
|
'type' => $type,
|
||||||
|
|||||||
@ -34,6 +34,7 @@ class TicketController extends BaseController
|
|||||||
public $claimStatus;
|
public $claimStatus;
|
||||||
public $placeHolders;
|
public $placeHolders;
|
||||||
public $extraFields;
|
public $extraFields;
|
||||||
|
public $nonIDReason;
|
||||||
|
|
||||||
protected $clientModel;
|
protected $clientModel;
|
||||||
protected $ticketMasterModel;
|
protected $ticketMasterModel;
|
||||||
@ -137,6 +138,13 @@ class TicketController extends BaseController
|
|||||||
53 => ['cancel_remark'],
|
53 => ['cancel_remark'],
|
||||||
58 => ['cancel_remark'],
|
58 => ['cancel_remark'],
|
||||||
];
|
];
|
||||||
|
$this->nonIDReason = [
|
||||||
|
"Newborn Baby" => "Newborn Baby",
|
||||||
|
"Newly Wedded Spouse" => "Newly Wedded Spouse",
|
||||||
|
"Policy Pending" => "Policy Pending",
|
||||||
|
"New Joinee" => "New Joinee",
|
||||||
|
"Exceptional Case" => "Exceptional Case"
|
||||||
|
];
|
||||||
|
|
||||||
$this->ticketMasterModel = new TicketMasterModel();
|
$this->ticketMasterModel = new TicketMasterModel();
|
||||||
$this->claimStatus = new TicketClaimStatusModel();
|
$this->claimStatus = new TicketClaimStatusModel();
|
||||||
@ -296,7 +304,8 @@ class TicketController extends BaseController
|
|||||||
'ticket_type' => $this->ticketType,
|
'ticket_type' => $this->ticketType,
|
||||||
'priorityType' => $this->priorityType,
|
'priorityType' => $this->priorityType,
|
||||||
'relationshipType' => $this->relationshipType,
|
'relationshipType' => $this->relationshipType,
|
||||||
'modeOFIntimate' => $this->modeOFIntimate
|
'modeOFIntimate' => $this->modeOFIntimate,
|
||||||
|
'nonIDReason' => $this->nonIDReason
|
||||||
];
|
];
|
||||||
|
|
||||||
switch ($ticket_type) {
|
switch ($ticket_type) {
|
||||||
@ -528,6 +537,12 @@ class TicketController extends BaseController
|
|||||||
$ticket_data['settled_date'] = change_date_format($ticket_data['settled_date'], null, $out_put_format);
|
$ticket_data['settled_date'] = change_date_format($ticket_data['settled_date'], null, $out_put_format);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($ticket_data['pay_initiate_date'])) {
|
||||||
|
$ticket_data['pay_initiate_date'] = null;
|
||||||
|
} else {
|
||||||
|
$ticket_data['pay_initiate_date'] = change_date_format($ticket_data['pay_initiate_date'], null, $out_put_format);
|
||||||
|
}
|
||||||
|
|
||||||
return $ticket_data;
|
return $ticket_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -240,7 +240,7 @@ class EmployeeModel extends Model
|
|||||||
return $results;
|
return $results;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getEmployeeByEmployeeCode($emp_code, $client_policy_id = null)
|
public function getEmployeeByEmployeeCode($emp_code, $client_policy_id = null, $client_id = null)
|
||||||
{
|
{
|
||||||
$query = $this->select("
|
$query = $this->select("
|
||||||
employees.id AS emp_id,
|
employees.id AS emp_id,
|
||||||
@ -257,6 +257,10 @@ class EmployeeModel extends Model
|
|||||||
->where('employee_polices.is_active', 1)
|
->where('employee_polices.is_active', 1)
|
||||||
->where('employees.emp_code', $emp_code);
|
->where('employees.emp_code', $emp_code);
|
||||||
|
|
||||||
|
if(!empty($client_id)){
|
||||||
|
$query->where('employees.client_id', $client_id);
|
||||||
|
}
|
||||||
|
|
||||||
if(!empty($client_policy_id)){
|
if(!empty($client_policy_id)){
|
||||||
$query->where('employee_polices.client_policy_id', $client_policy_id);
|
$query->where('employee_polices.client_policy_id', $client_policy_id);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,78 +24,13 @@
|
|||||||
<input type="hidden" id="head_rejection_reason" name="head_rejection_reason">
|
<input type="hidden" id="head_rejection_reason" name="head_rejection_reason">
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
||||||
|
<h5>Employee Details</h5>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<!-- first_data_points -->
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="claim_status">Status<span class="text-danger"></span></label>
|
|
||||||
<select class="form-control" id="claim_status_id" name="claim_status_id">
|
|
||||||
<!-- <option value="0">Select status</option> -->
|
|
||||||
<?php
|
|
||||||
if (isset($claim_status) && count($claim_status)) {
|
|
||||||
foreach ($claim_status as $key => $value) {
|
|
||||||
$selected = (isset($ticket_data) && $ticket_data['claim_status_id'] == $value['id']) ? 'selected' : '';
|
|
||||||
echo "<option value=" . $value['id'] . " $selected>" . $value['claim_status'] . "</option>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="priority">Priority<span class="text-danger"></span></label>
|
|
||||||
<select class="form-control" id="priority" name="priority">
|
|
||||||
<!-- <option value="0">Select Priority</option> -->
|
|
||||||
<?php
|
|
||||||
if (isset($priorityType) && count($priorityType)) {
|
|
||||||
foreach ($priorityType as $key => $value) {
|
|
||||||
$selected = (isset($ticket_data) && $ticket_data['priority'] == $key) ? 'selected' : '';
|
|
||||||
echo "<option value=" . $key . " $selected>" . $value . "</option>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="acm_id">Account Manager<span class="text-danger"></span></label>
|
|
||||||
<select class="form-control" id="acm_id" name="acm_id">
|
|
||||||
<!-- <option value="0">Select Account Manager</option> -->
|
|
||||||
<?php
|
|
||||||
if (isset($acms) && count($acms)) {
|
|
||||||
foreach ($acms as $key => $value) {
|
|
||||||
$selected = (isset($ticket_data) && $ticket_data['acm_id'] == $value['id']) ? 'selected' : '';
|
|
||||||
echo "<option value=" . $value['id'] . " $selected >" . $value['first_name'] . "</option>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="policy_no">Policy No<span class="text-danger"></span></label>
|
|
||||||
<input type="text" class="form-control" id="policy_no"
|
|
||||||
value="<?= isset($ticket_data['policy_no']) ? $ticket_data['policy_no'] : '' ?>"
|
|
||||||
name="policy_no" placeholder="Policy Number">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="insurer_id">Insurer<span class="text-danger"></span></label>
|
|
||||||
<input type=hidden id="insurer_id" name="insurer_id" value="<?= isset($ticket_data['insurer_id']) ? $ticket_data['insurer_id'] : '' ?>">
|
|
||||||
<input type=text class="form-control" id="insurer_name" placeholder="Insurer" value="<?= isset($ticket_data['insurer_name']) ? $ticket_data['insurer_name'] : '' ?>" readonly>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="tpa_id">TPA<span class="text-danger"></span></label>
|
|
||||||
<input type=hidden id="tpa_id" name="tpa_id" value="<?= isset($ticket_data['tpa_id']) ? $ticket_data['tpa_id'] : '' ?>">
|
|
||||||
<input type=text class="form-control" id="tpa_name" placeholder="TPA" value="<?= isset($ticket_data['tpa_name']) ? $ticket_data['tpa_name'] : '' ?>" readonly>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="client_name">Corporate Name<span class="text-danger"></span></label>
|
|
||||||
<input type="hidden" id="client_id" name="client_id" value="<?= isset($ticket_data['client_id']) ? $ticket_data['client_id'] : '' ?>">
|
|
||||||
<input type="text" class="form-control" id="client_name" placeholder="Client" value="<?= isset($ticket_data['client_name']) ? $ticket_data['client_name'] : '' ?>" readonly>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="emp_code">Employee ID <i class="fa fa-search text-danger"
|
<label for="emp_code">Employee ID <i class="fa fa-search text-danger"
|
||||||
aria-hidden="true" onclick="openFetchEmpDataodal(this)"></i> <span
|
aria-hidden="true" onclick="openFetchEmpDataodal(this)"></i> <span
|
||||||
@ -105,13 +40,6 @@
|
|||||||
name="emp_code">
|
name="emp_code">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="tpa_id">TPA ID<span class="text-danger"></span></label>
|
|
||||||
<input type="text" class="form-control" id="tpa_no" placeholder="Enter TPA ID"
|
|
||||||
value="<?= isset($ticket_data['tpa_no']) ? $ticket_data['tpa_no'] : '' ?>"
|
|
||||||
name="tpa_no">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="emp_name">Employee Name<span class="text-danger"></span></label>
|
<label for="emp_name">Employee Name<span class="text-danger"></span></label>
|
||||||
<input type=hidden id="emp_id" name="emp_id" value="<?= isset($ticket_data['emp_id']) ? $ticket_data['emp_id'] : '' ?>">
|
<input type=hidden id="emp_id" name="emp_id" value="<?= isset($ticket_data['emp_id']) ? $ticket_data['emp_id'] : '' ?>">
|
||||||
@ -141,6 +69,20 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="policy_no">Policy No<span class="text-danger"></span></label>
|
||||||
|
<input type="text" class="form-control" id="policy_no"
|
||||||
|
value="<?= isset($ticket_data['policy_no']) ? $ticket_data['policy_no'] : '' ?>"
|
||||||
|
name="policy_no" placeholder="Policy Number" >
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="tpa_id">TPA ID<span class="text-danger"></span></label>
|
||||||
|
<input type="text" class="form-control" id="tpa_no" placeholder="Enter TPA ID"
|
||||||
|
value="<?= isset($ticket_data['tpa_no']) ? $ticket_data['tpa_no'] : '' ?>"
|
||||||
|
name="tpa_no">
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="emp_mobile">Employee Mobile No<span class="text-danger"></span></label>
|
<label for="emp_mobile">Employee Mobile No<span class="text-danger"></span></label>
|
||||||
<input type="text" class="form-control" id="emp_mobile" placeholder="Enter EMP Mobile"
|
<input type="text" class="form-control" id="emp_mobile" placeholder="Enter EMP Mobile"
|
||||||
@ -155,6 +97,78 @@
|
|||||||
name="emp_mail">
|
name="emp_mail">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="client_name">Corporate Name<span class="text-danger"></span></label>
|
||||||
|
<input type="hidden" id="client_id" name="client_id" value="<?= isset($ticket_data['client_id']) ? $ticket_data['client_id'] : '' ?>">
|
||||||
|
<input type="text" class="form-control" id="client_name" placeholder="Client" value="<?= isset($ticket_data['client_name']) ? $ticket_data['client_name'] : '' ?>" readonly>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="insurer_id">Insurer<span class="text-danger"></span></label>
|
||||||
|
<input type=hidden id="insurer_id" name="insurer_id" value="<?= isset($ticket_data['insurer_id']) ? $ticket_data['insurer_id'] : '' ?>">
|
||||||
|
<input type=text class="form-control" id="insurer_name" placeholder="Insurer" value="<?= isset($ticket_data['insurer_name']) ? $ticket_data['insurer_name'] : '' ?>" readonly>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="tpa_id">TPA<span class="text-danger"></span></label>
|
||||||
|
<input type=hidden id="tpa_id" name="tpa_id" value="<?= isset($ticket_data['tpa_id']) ? $ticket_data['tpa_id'] : '' ?>">
|
||||||
|
<input type=text class="form-control" id="tpa_name" placeholder="TPA" value="<?= isset($ticket_data['tpa_name']) ? $ticket_data['tpa_name'] : '' ?>" readonly>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="acm_id">Account Manager<span class="text-danger"></span></label>
|
||||||
|
<select class="form-control" id="acm_id" name="acm_id">
|
||||||
|
<!-- <option value="0">Select Account Manager</option> -->
|
||||||
|
<?php
|
||||||
|
if (isset($acms) && count($acms)) {
|
||||||
|
foreach ($acms as $key => $value) {
|
||||||
|
$selected = (isset($ticket_data) && $ticket_data['acm_id'] == $value['id']) ? 'selected' : '';
|
||||||
|
echo "<option value=" . $value['id'] . " $selected >" . $value['first_name'] . "</option>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- end first_data_points -->
|
||||||
|
|
||||||
|
<h5>Claim Details</h5>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<!-- second_data_points -->
|
||||||
|
<div class="form-row">
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="claim_status">Status<span class="text-danger"></span></label>
|
||||||
|
<select class="form-control" id="claim_status_id" name="claim_status_id">
|
||||||
|
<!-- <option value="0">Select status</option> -->
|
||||||
|
<?php
|
||||||
|
if (isset($claim_status) && count($claim_status)) {
|
||||||
|
foreach ($claim_status as $key => $value) {
|
||||||
|
$selected = (isset($ticket_data) && $ticket_data['claim_status_id'] == $value['id']) ? 'selected' : '';
|
||||||
|
echo "<option value=" . $value['id'] . " $selected>" . $value['claim_status'] . "</option>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="priority">Priority<span class="text-danger"></span></label>
|
||||||
|
<select class="form-control" id="priority" name="priority">
|
||||||
|
<!-- <option value="0">Select Priority</option> -->
|
||||||
|
<?php
|
||||||
|
if (isset($priorityType) && count($priorityType)) {
|
||||||
|
foreach ($priorityType as $key => $value) {
|
||||||
|
$selected = (isset($ticket_data) && $ticket_data['priority'] == $key) ? 'selected' : '';
|
||||||
|
echo "<option value=" . $key . " $selected>" . $value . "</option>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="mode_of_intimation"> Mode of Intimation <span
|
<label for="mode_of_intimation"> Mode of Intimation <span
|
||||||
class="text-danger"></span></label>
|
class="text-danger"></span></label>
|
||||||
@ -222,6 +236,15 @@
|
|||||||
name="pod_no">
|
name="pod_no">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- end second_data_points -->
|
||||||
|
|
||||||
|
<h5>Additional Details</h5>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<!-- third_data_points -->
|
||||||
|
<div class="form-row">
|
||||||
|
|
||||||
<div class="form-group col-md-3 up_cnu" style="display: none;">
|
<div class="form-group col-md-3 up_cnu" style="display: none;">
|
||||||
<label for="claim_number">Claim Number<span class="text-danger"></span></label>
|
<label for="claim_number">Claim Number<span class="text-danger"></span></label>
|
||||||
<input type="text" class="form-control" id="claim_number" placeholder="Enter Claim NO"
|
<input type="text" class="form-control" id="claim_number" placeholder="Enter Claim NO"
|
||||||
@ -301,14 +324,14 @@
|
|||||||
value="<?= isset($ticket_data['pay_initiate_date']) ? $ticket_data['pay_initiate_date'] : '' ?>" name="pay_initiate_date">
|
value="<?= isset($ticket_data['pay_initiate_date']) ? $ticket_data['pay_initiate_date'] : '' ?>" name="pay_initiate_date">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3 returned" style="display: none;">
|
|
||||||
<label for="return_remark">Return Remark</label>
|
|
||||||
<textarea class="form-control" id="return_remark" placeholder="Enter Return Remark" name="return_remark"><?= isset($ticket_data['return_remark']) ? $ticket_data['return_remark'] : '' ?></textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3 canceled" style="display: none;">
|
<div class="form-group col-md-3 canceled" style="display: none;">
|
||||||
<label for="cancel_remark">Cancel Remark</label>
|
<label for="cancel_remark">Cancel Remark</label>
|
||||||
<textarea class="form-control" id="cancel_remark" placeholder="Enter Cancel Remark" name="cancel_remark"><?= isset($ticket_data['cancel_remark']) ? $ticket_data['cancel_remark'] : '' ?></textarea>
|
<textarea class="form-control" id="cancel_remark" rows="1" placeholder="Enter Cancel Remark" name="cancel_remark"><?= isset($ticket_data['cancel_remark']) ? $ticket_data['cancel_remark'] : '' ?></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3 returned" style="display: none;">
|
||||||
|
<label for="return_remark">Return Remark</label>
|
||||||
|
<textarea class="form-control" id="return_remark" rows="1" placeholder="Enter Return Remark" name="return_remark"><?= isset($ticket_data['return_remark']) ? $ticket_data['return_remark'] : '' ?></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-6 returned" style="display: none;">
|
<div class="form-group col-md-6 returned" style="display: none;">
|
||||||
@ -317,12 +340,24 @@
|
|||||||
value="<?= isset($ticket_data['awb_no_courier_name']) ? $ticket_data['awb_no_courier_name'] : '' ?>" name="awb_no_courier_name">
|
value="<?= isset($ticket_data['awb_no_courier_name']) ? $ticket_data['awb_no_courier_name'] : '' ?>" name="awb_no_courier_name">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-6 non_id" style="display: none;">
|
<div class="form-group col-md-3 non_id" style="display: none;">
|
||||||
<label for="non_id_reason">Non ID Reason</label>
|
<label for="non_id_reason">Non ID Reason</label>
|
||||||
<textarea class="form-control" id="non_id_reason" placeholder="Enter Cancel Remark" name="non_id_reason"><?= isset($ticket_data['non_id_reason']) ? $ticket_data['non_id_reason'] : '' ?></textarea>
|
<select class="form-control" id="non_id_reason" name="non_id_reason">
|
||||||
|
<option value="">Select Reason</option>
|
||||||
|
<?php
|
||||||
|
if (isset($nonIDReason) && count($nonIDReason)) {
|
||||||
|
foreach ($nonIDReason as $key => $value) {
|
||||||
|
$selected = (isset($ticket_data) && $ticket_data['non_id_reason'] == $key) ? 'selected' : '';
|
||||||
|
echo "<option value='" . $key . "' $selected>" . $value . "</option>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<!-- end third_data_points -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-12 text-right m-b-0" style="margin-top: 29px;">
|
<div class="form-group col-md-12 text-right m-b-0" style="margin-top: 29px;">
|
||||||
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1" id="btnSubmit">Submit</button>
|
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1" id="btnSubmit">Submit</button>
|
||||||
|
|||||||
@ -25,92 +25,18 @@
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
<form role="form" class="parsley-examples" method="post" id="ticket_form_data" onsubmit="submitClaimForm(event, this)"
|
<form role="form" class="parsley-examples" method="post" id="ticket_form_data" onsubmit="submitClaimForm(event, this)"
|
||||||
enctype="multipart/form-data">
|
enctype="multipart/form-data">
|
||||||
<div class="form-group">
|
|
||||||
<div class="form-row">
|
|
||||||
|
|
||||||
<input type="hidden" id="ticket_master_id" name="ticket_master_id" value="<?= isset($ticket_data['id']) ? $ticket_data['id'] : '' ?>">
|
<input type="hidden" id="ticket_master_id" name="ticket_master_id" value="<?= isset($ticket_data['id']) ? $ticket_data['id'] : '' ?>">
|
||||||
<input type="hidden" id="is_head_approved" name="is_head_approved" value="<?= isset($ticket_data['is_head_approved']) ? $ticket_data['is_head_approved'] : '' ?>">
|
<input type="hidden" id="is_head_approved" name="is_head_approved" value="<?= isset($ticket_data['is_head_approved']) ? $ticket_data['is_head_approved'] : '' ?>">
|
||||||
<input type="hidden" id="extra_fields_array_for_validate" name="extra_fields_array_for_validate" value='<?= isset($extra_fields_array_for_validate) && !empty($extra_fields_array_for_validate) ? json_encode($extra_fields_array_for_validate) : "[]" ?>'>
|
<input type="hidden" id="extra_fields_array_for_validate" name="extra_fields_array_for_validate" value='<?= isset($extra_fields_array_for_validate) && !empty($extra_fields_array_for_validate) ? json_encode($extra_fields_array_for_validate) : "[]" ?>'>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group">
|
||||||
<label for="claim_status">Status<span class="text-danger"></span></label>
|
|
||||||
<select class="form-control" id="claim_status_id" name="claim_status_id">
|
|
||||||
<!-- <option value="0">Select status</option> -->
|
|
||||||
<?php
|
|
||||||
if (isset($claim_status) && count($claim_status)) {
|
|
||||||
foreach ($claim_status as $key => $value) {
|
|
||||||
$selected = (isset($ticket_data) && $ticket_data['claim_status_id'] == $value['id']) ? 'selected' : '';
|
|
||||||
echo "<option value=" . $value['id'] . " $selected>" . $value['claim_status'] . "</option>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<h5>Employee Details</h5>
|
||||||
<label for="acm_id">Account Manager<span class="text-danger"></span></label>
|
<hr>
|
||||||
<select class="form-control" id="acm_id" name="acm_id">
|
|
||||||
<!-- <option value="0">Select Account Manager</option> -->
|
<!-- first_data_points -->
|
||||||
<?php
|
<div class="form-row">
|
||||||
if (isset($acms) && count($acms)) {
|
|
||||||
foreach ($acms as $key => $value) {
|
|
||||||
$selected = (isset($ticket_data) && $ticket_data['acm_id'] == $value['id']) ? 'selected' : '';
|
|
||||||
echo "<option value=" . $value['id'] . " $selected>" . $value['first_name'] . "</option>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="client_name">Corporate Name<span class="text-danger"></span></label>
|
|
||||||
<input type="hidden" id="client_id" name="client_id" value="<?= isset($ticket_data['client_id']) ? $ticket_data['client_id'] : '' ?>">
|
|
||||||
<input type="text" class="form-control" id="client_name" placeholder="Client" value="<?= isset($ticket_data['client_name']) ? $ticket_data['client_name'] : '' ?>" readonly>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="insurer_id">Insurer<span class="text-danger"></span></label>
|
|
||||||
<input type=hidden id="insurer_id" name="insurer_id" value="<?= isset($ticket_data['insurer_id']) ? $ticket_data['insurer_id'] : '' ?>">
|
|
||||||
<input type=text class="form-control" id="insurer_name" placeholder="Insurer" value="<?= isset($ticket_data['insurer_name']) ? $ticket_data['insurer_name'] : '' ?>" readonly>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="policy_no">Policy No<span class="text-danger"></span></label>
|
|
||||||
<input type="text" class="form-control" id="policy_no"
|
|
||||||
value="<?= isset($ticket_data['policy_no']) ? $ticket_data['policy_no'] : '' ?>"
|
|
||||||
name="policy_no">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="ticket_type_id"> Policy Type <span class="text-danger"></span></label>
|
|
||||||
<select class="form-control readonly-select" id="ticket_type_id" name="ticket_type_id" readonly>
|
|
||||||
<?php
|
|
||||||
if (isset($ticket_type) && count($ticket_type)) {
|
|
||||||
foreach ($ticket_type as $key => $value) {
|
|
||||||
if($key != 1){
|
|
||||||
$selected = (isset($ticket_data) && $ticket_data['ticket_type_id'] == $key) ? 'selected' : ((isset($selected_ticket_type) && $selected_ticket_type == $key) ? 'selected' : '');
|
|
||||||
echo "<option value='" . $key . "' $selected>" . $value . "</option>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
|
||||||
<label for="claim_type"> Claim Type <span class="text-danger"></span></label>
|
|
||||||
<select class="form-control" id="claim_type" name="claim_type">
|
|
||||||
<!-- <option value="0">Select claim Type</option> -->
|
|
||||||
<?php
|
|
||||||
if (isset($claim_type) && count($claim_type)) {
|
|
||||||
foreach ($claim_type as $key => $value) {
|
|
||||||
$selected = (isset($ticket_data) && $ticket_data['claim_type'] == $key) ? 'selected' : '';
|
|
||||||
echo "<option value='" . $key . "' $selected>" . $value . "</option>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="emp_code">Employee ID <i class="fa fa-search text-danger"
|
<label for="emp_code">Employee ID <i class="fa fa-search text-danger"
|
||||||
@ -120,7 +46,6 @@
|
|||||||
name="emp_code">
|
name="emp_code">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="emp_name">Employee Name<span class="text-danger"></span></label>
|
<label for="emp_name">Employee Name<span class="text-danger"></span></label>
|
||||||
<input type=hidden id="emp_id" name="emp_id" value="<?= isset($ticket_data['emp_id']) ? $ticket_data['emp_id'] : '' ?>">
|
<input type=hidden id="emp_id" name="emp_id" value="<?= isset($ticket_data['emp_id']) ? $ticket_data['emp_id'] : '' ?>">
|
||||||
@ -143,6 +68,94 @@
|
|||||||
name="emp_mail">
|
name="emp_mail">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="policy_no">Policy No<span class="text-danger"></span></label>
|
||||||
|
<input type="text" class="form-control" id="policy_no"
|
||||||
|
value="<?= isset($ticket_data['policy_no']) ? $ticket_data['policy_no'] : '' ?>"
|
||||||
|
name="policy_no">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="client_name">Corporate Name<span class="text-danger"></span></label>
|
||||||
|
<input type="hidden" id="client_id" name="client_id" value="<?= isset($ticket_data['client_id']) ? $ticket_data['client_id'] : '' ?>">
|
||||||
|
<input type="text" class="form-control" id="client_name" placeholder="Client" value="<?= isset($ticket_data['client_name']) ? $ticket_data['client_name'] : '' ?>" readonly>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="insurer_id">Insurer<span class="text-danger"></span></label>
|
||||||
|
<input type=hidden id="insurer_id" name="insurer_id" value="<?= isset($ticket_data['insurer_id']) ? $ticket_data['insurer_id'] : '' ?>">
|
||||||
|
<input type=text class="form-control" id="insurer_name" placeholder="Insurer" value="<?= isset($ticket_data['insurer_name']) ? $ticket_data['insurer_name'] : '' ?>" readonly>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="acm_id">Account Manager<span class="text-danger"></span></label>
|
||||||
|
<select class="form-control" id="acm_id" name="acm_id">
|
||||||
|
<!-- <option value="0">Select Account Manager</option> -->
|
||||||
|
<?php
|
||||||
|
if (isset($acms) && count($acms)) {
|
||||||
|
foreach ($acms as $key => $value) {
|
||||||
|
$selected = (isset($ticket_data) && $ticket_data['acm_id'] == $value['id']) ? 'selected' : '';
|
||||||
|
echo "<option value=" . $value['id'] . " $selected>" . $value['first_name'] . "</option>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- end first_data_points -->
|
||||||
|
|
||||||
|
<h5>Claim Details</h5>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<!-- second_data_points -->
|
||||||
|
<div class="form-row">
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="ticket_type_id"> Policy Type <span class="text-danger"></span></label>
|
||||||
|
<select class="form-control readonly-select" id="ticket_type_id" name="ticket_type_id" readonly>
|
||||||
|
<?php
|
||||||
|
if (isset($ticket_type) && count($ticket_type)) {
|
||||||
|
foreach ($ticket_type as $key => $value) {
|
||||||
|
if($key != 1){
|
||||||
|
$selected = (isset($ticket_data) && $ticket_data['ticket_type_id'] == $key) ? 'selected' : ((isset($selected_ticket_type) && $selected_ticket_type == $key) ? 'selected' : '');
|
||||||
|
echo "<option value='" . $key . "' $selected>" . $value . "</option>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="claim_status">Status<span class="text-danger"></span></label>
|
||||||
|
<select class="form-control" id="claim_status_id" name="claim_status_id">
|
||||||
|
<!-- <option value="0">Select status</option> -->
|
||||||
|
<?php
|
||||||
|
if (isset($claim_status) && count($claim_status)) {
|
||||||
|
foreach ($claim_status as $key => $value) {
|
||||||
|
$selected = (isset($ticket_data) && $ticket_data['claim_status_id'] == $value['id']) ? 'selected' : '';
|
||||||
|
echo "<option value=" . $value['id'] . " $selected>" . $value['claim_status'] . "</option>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3">
|
||||||
|
<label for="claim_type"> Claim Type <span class="text-danger"></span></label>
|
||||||
|
<select class="form-control" id="claim_type" name="claim_type">
|
||||||
|
<!-- <option value="0">Select claim Type</option> -->
|
||||||
|
<?php
|
||||||
|
if (isset($claim_type) && count($claim_type)) {
|
||||||
|
foreach ($claim_type as $key => $value) {
|
||||||
|
$selected = (isset($ticket_data) && $ticket_data['claim_type'] == $key) ? 'selected' : '';
|
||||||
|
echo "<option value='" . $key . "' $selected>" . $value . "</option>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3">
|
<div class="form-group col-md-3">
|
||||||
<label for="date_of_join">Date of joining<span class="text-danger"></span></label>
|
<label for="date_of_join">Date of joining<span class="text-danger"></span></label>
|
||||||
@ -196,6 +209,14 @@
|
|||||||
value="<?= isset($ticket_data['si_amt']) ? $ticket_data['si_amt'] : '' ?>"
|
value="<?= isset($ticket_data['si_amt']) ? $ticket_data['si_amt'] : '' ?>"
|
||||||
name="si_amt">
|
name="si_amt">
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- end second_data_points -->
|
||||||
|
|
||||||
|
<h5>Additional Details</h5>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<!-- third_data_points -->
|
||||||
|
<div class="form-row">
|
||||||
|
|
||||||
<div class="form-group col-md-3 approved" style="display: none;">
|
<div class="form-group col-md-3 approved" style="display: none;">
|
||||||
<label for="approved_amount">Approved Amount</label>
|
<label for="approved_amount">Approved Amount</label>
|
||||||
@ -233,16 +254,15 @@
|
|||||||
value="<?= isset($ticket_data['settle_letter']) ? $ticket_data['settle_letter'] : '' ?>" name="settle_letter">
|
value="<?= isset($ticket_data['settle_letter']) ? $ticket_data['settle_letter'] : '' ?>" name="settle_letter">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-3 returned" style="display: none;">
|
|
||||||
<label for="return_remark">Return Remark</label>
|
|
||||||
<textarea class="form-control" id="return_remark" placeholder="Enter Return Remark" name="return_remark"><?= isset($ticket_data['return_remark']) ? $ticket_data['return_remark'] : '' ?></textarea>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="form-group col-md-3 canceled" style="display: none;">
|
<div class="form-group col-md-3 canceled" style="display: none;">
|
||||||
<label for="cancel_remark">Cancel Remark</label>
|
<label for="cancel_remark">Cancel Remark</label>
|
||||||
<textarea class="form-control" id="cancel_remark" placeholder="Enter Cancel Remark" name="cancel_remark"><?= isset($ticket_data['cancel_remark']) ? $ticket_data['cancel_remark'] : '' ?></textarea>
|
<textarea class="form-control" id="cancel_remark" rows="1" placeholder="Enter Cancel Remark" name="cancel_remark"><?= isset($ticket_data['cancel_remark']) ? $ticket_data['cancel_remark'] : '' ?></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group col-md-3 returned" style="display: none;">
|
||||||
|
<label for="return_remark">Return Remark</label>
|
||||||
|
<textarea class="form-control" id="return_remark" rows="1" placeholder="Enter Return Remark" name="return_remark"><?= isset($ticket_data['return_remark']) ? $ticket_data['return_remark'] : '' ?></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group col-md-6 returned" style="display: none;">
|
<div class="form-group col-md-6 returned" style="display: none;">
|
||||||
<label for="awb_no_courier_name">AWB No with Courier Name</label>
|
<label for="awb_no_courier_name">AWB No with Courier Name</label>
|
||||||
@ -250,7 +270,10 @@
|
|||||||
value="<?= isset($ticket_data['awb_no_courier_name']) ? $ticket_data['awb_no_courier_name'] : '' ?>" name="awb_no_courier_name">
|
value="<?= isset($ticket_data['awb_no_courier_name']) ? $ticket_data['awb_no_courier_name'] : '' ?>" name="awb_no_courier_name">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<!-- end third_data_points -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-12 text-right m-b-0" style="margin-top: 29px;">
|
<div class="form-group col-md-12 text-right m-b-0" style="margin-top: 29px;">
|
||||||
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1"
|
<button type="submit" class="btn btn-primary waves-effect waves-light mr-1"
|
||||||
|
|||||||
@ -76,48 +76,37 @@ if(!isset($view_ticket_page)){
|
|||||||
<div id="mobileSearch" class="search-method">
|
<div id="mobileSearch" class="search-method">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-md-5" style="display:true;">
|
<div class="col-md-3" style="display:true;">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Employee Data Points</label>
|
<label>Employee Data Points</label>
|
||||||
<select name="employee_data_points" id="employee_data_points"
|
<select name="employee_data_points" id="employee_data_points"
|
||||||
class="form-control">
|
class="form-control">
|
||||||
<option value="mobile">Employee Mobile Number</option>
|
<option value="mobile">Mobile Number</option>
|
||||||
<option value="emp_code">Employee ID</option>
|
<option value="emp_code">Employee ID</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-5">
|
<div class="col-md-3">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label id="employee_data_points_label">Employee Mobile Number</label>
|
<label>Client</label>
|
||||||
|
<select id="mobile_emp_client_data_list" name="client"
|
||||||
|
class="form-control custom-select">
|
||||||
|
<option value="0">Select Client</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label id="employee_data_points_label">Mobile Number</label>
|
||||||
<input class="form-control" type="text" id="emp_mobile_number_for_claim"
|
<input class="form-control" type="text" id="emp_mobile_number_for_claim"
|
||||||
name="mobile_numbers" onkeypress="return onlyNumbers(event)"
|
name="mobile_numbers" onkeypress="return onlyNumbers(event)"
|
||||||
maxlength="10">
|
maxlength="10">
|
||||||
</div>
|
</div>
|
||||||
<div class="text-danger" id="error_dis"></div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
|
||||||
<div class="form-group" style="margin-top: 9px;">
|
|
||||||
<br>
|
|
||||||
<button class="btn btn-primary"
|
|
||||||
onclick="getTheEmpDataForClaimSearchByMobile(this)">Search</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="emp_member_policy_div" style="display:true;">
|
<div class="col-md-6">
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-5" style="display:none;">
|
|
||||||
<div class="form-group">
|
|
||||||
<label>Employee</label>
|
|
||||||
<select name="employee_by_number" id="employee_by_number"
|
|
||||||
class="form-control SelExample">
|
|
||||||
<option value="0">Select Employee</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-5">
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Insured List</label>
|
<label>Insured List</label>
|
||||||
<select name="employee_by_number" id="member_by_number"
|
<select name="employee_by_number" id="member_by_number"
|
||||||
@ -126,81 +115,93 @@ if(!isset($view_ticket_page)){
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Search by Client, Branch, and Policy -->
|
<div class="col-md-4">
|
||||||
<div class="mt-4">
|
|
||||||
<h4 onclick="toggleAccordion('clientBranchAccordion')">
|
|
||||||
Search by Client, Branch, and Policy
|
|
||||||
<span class="arrow" id="clientBranchArrow">➤</span>
|
|
||||||
</h4>
|
|
||||||
<div class="accordion-content" id="clientBranchAccordion">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label>Client</label>
|
|
||||||
<select id="emp_client_data_list" name="client"
|
|
||||||
class="form-control custom-select">
|
|
||||||
<option value="0">Select Client</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label>Branch</label>
|
|
||||||
<select id="emp_client_branch_data_list" name="branch"
|
|
||||||
class="form-control custom-select">
|
|
||||||
<option value="0">Select Branch</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label>Policy</label>
|
|
||||||
<select id="emp_client_policy_data_list" name="policy_client_branch"
|
|
||||||
class="form-control custom-select" onchange="getEmpData(this)">
|
|
||||||
<option value="0">Select Policy</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6">
|
|
||||||
<div class="form-group">
|
|
||||||
<label>Employee</label>
|
|
||||||
<select name="search_by_client_employee" id="search_by_client_employee"
|
|
||||||
class="form-control SelExample"
|
|
||||||
onchange="getTheEmpDataForClaimSearchByMobile(this, 'client')">
|
|
||||||
<option value="0">Select Employee</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-2">
|
||||||
<div class="form-group">
|
<div class="form-group" style="margin-top: 9px; float:right;">
|
||||||
<label>Insured List</label>
|
<br>
|
||||||
<select name="member" id="search_by_client_member"
|
<button class="btn btn-primary"
|
||||||
class="form-control SelExample" onchange="setMemberData(this)">
|
onclick="getTheEmpDataForClaimSearchByMobile(this)">Search</button>
|
||||||
<option value="0">Select Member</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Search by Client, Branch, and Policy -->
|
||||||
|
<div class="mt-4">
|
||||||
|
<h4 onclick="toggleAccordion('clientBranchAccordion')">
|
||||||
|
Search by Client, Branch, and Policy
|
||||||
|
<span class="arrow" id="clientBranchArrow">➤</span>
|
||||||
|
</h4>
|
||||||
|
<div class="accordion-content" id="clientBranchAccordion">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Client</label>
|
||||||
|
<select id="emp_client_data_list" name="client"
|
||||||
|
class="form-control custom-select">
|
||||||
|
<option value="0">Select Client</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Branch</label>
|
||||||
|
<select id="emp_client_branch_data_list" name="branch"
|
||||||
|
class="form-control custom-select">
|
||||||
|
<option value="0">Select Branch</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Policy</label>
|
||||||
|
<select id="emp_client_policy_data_list" name="policy_client_branch"
|
||||||
|
class="form-control custom-select" onchange="getEmpData(this)">
|
||||||
|
<option value="0">Select Policy</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Employee</label>
|
||||||
|
<select name="search_by_client_employee" id="search_by_client_employee"
|
||||||
|
class="form-control SelExample"
|
||||||
|
onchange="getTheEmpDataForClaimSearchByMobile(this, 'client')">
|
||||||
|
<option value="0">Select Employee</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Insured List</label>
|
||||||
|
<select name="member" id="search_by_client_member"
|
||||||
|
class="form-control SelExample" onchange="setMemberData(this)">
|
||||||
|
<option value="0">Select Member</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
</div>
|
||||||
<a class="btn btn-primary close" data-dismiss="modal" aria-label="Close"
|
<div class="modal-footer">
|
||||||
onclick="toResetTheModelFields()">Submit</a>
|
<a class="btn btn-primary close" data-dismiss="modal" aria-label="Close"
|
||||||
</div>
|
onclick="toResetTheModelFields()">Submit</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var client_list = ''; // local variable for storing the client branch list
|
var client_list = ''; // local variable for storing the client branch list
|
||||||
@ -296,6 +297,7 @@ function getClientAndBranchAndPolicy() {
|
|||||||
branch_list = res.branch_data;
|
branch_list = res.branch_data;
|
||||||
policy_list = res.policy_data;
|
policy_list = res.policy_data;
|
||||||
appendClients(res.client_data);
|
appendClients(res.client_data);
|
||||||
|
appendClientsForMobileSearch(res.client_data);
|
||||||
} else {
|
} else {
|
||||||
console.log('No data found');
|
console.log('No data found');
|
||||||
}
|
}
|
||||||
@ -329,6 +331,26 @@ function appendClients(data) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//append the clients data for mobile search to the modal
|
||||||
|
function appendClientsForMobileSearch(data) {
|
||||||
|
$('#mobile_emp_client_data_list').empty();
|
||||||
|
|
||||||
|
$('#mobile_emp_client_data_list').append($('<option>', {
|
||||||
|
value: '0',
|
||||||
|
text: 'Select Client'
|
||||||
|
}));
|
||||||
|
|
||||||
|
$.each(data, function(index, item) {
|
||||||
|
var option = $('<option>', {
|
||||||
|
value: item.id,
|
||||||
|
text: item.short_name,
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#mobile_emp_client_data_list').append(option).select2();
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
//append the clients branch data to the modal
|
//append the clients branch data to the modal
|
||||||
function appendBranch(data) {
|
function appendBranch(data) {
|
||||||
$('#emp_client_branch_data_list').empty();
|
$('#emp_client_branch_data_list').empty();
|
||||||
@ -363,47 +385,48 @@ function appendPolicy(data) {
|
|||||||
|
|
||||||
$.each(data, function(index, item) {
|
$.each(data, function(index, item) {
|
||||||
|
|
||||||
if(ticket_type == 1){
|
if (ticket_type == 1) {
|
||||||
|
|
||||||
if(item.policy_type_id == 2 || item.policy_type_id == 3 || item.policy_type_id == 4 ||item.policy_type_id == 5) {
|
if (item.policy_type_id == 2 || item.policy_type_id == 3 || item.policy_type_id == 4 || item
|
||||||
|
.policy_type_id == 5) {
|
||||||
var option = $('<option>', {
|
var option = $('<option>', {
|
||||||
value: item.id,
|
value: item.id,
|
||||||
text: item.policy_type + '-' + item.policy_no,
|
text: item.policy_type + '-' + item.policy_no,
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#emp_client_policy_data_list').append(option).select2();
|
$('#emp_client_policy_data_list').append(option).select2();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else if(ticket_type == 2){
|
} else if (ticket_type == 2) {
|
||||||
|
|
||||||
if(item.policy_type_id == 1) {
|
if (item.policy_type_id == 1) {
|
||||||
var option = $('<option>', {
|
var option = $('<option>', {
|
||||||
value: item.id,
|
value: item.id,
|
||||||
text: item.policy_type + '-' + item.policy_no,
|
text: item.policy_type + '-' + item.policy_no,
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#emp_client_policy_data_list').append(option).select2();
|
$('#emp_client_policy_data_list').append(option).select2();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else if(ticket_type == 3){
|
} else if (ticket_type == 3) {
|
||||||
|
|
||||||
if(item.policy_type_id == 6) {
|
if (item.policy_type_id == 6) {
|
||||||
var option = $('<option>', {
|
var option = $('<option>', {
|
||||||
value: item.id,
|
value: item.id,
|
||||||
text: item.policy_type + '-' + item.policy_no,
|
text: item.policy_type + '-' + item.policy_no,
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#emp_client_policy_data_list').append(option).select2();
|
$('#emp_client_policy_data_list').append(option).select2();
|
||||||
}
|
}
|
||||||
|
|
||||||
}else if(ticket_type == 4){
|
} else if (ticket_type == 4) {
|
||||||
|
|
||||||
if(item.policy_type == 7) {
|
if (item.policy_type == 7) {
|
||||||
var option = $('<option>', {
|
var option = $('<option>', {
|
||||||
value: item.id,
|
value: item.id,
|
||||||
text: item.policy_type + '-' + item.policy_no,
|
text: item.policy_type + '-' + item.policy_no,
|
||||||
});
|
});
|
||||||
|
|
||||||
$('#emp_client_policy_data_list').append(option).select2();
|
$('#emp_client_policy_data_list').append(option).select2();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -513,18 +536,22 @@ function getTheEmpDataForClaimSearchByMobile(input, searchType = null) {
|
|||||||
let type = $('#employee_data_points').val()
|
let type = $('#employee_data_points').val()
|
||||||
let param = $('#emp_mobile_number_for_claim').val()
|
let param = $('#emp_mobile_number_for_claim').val()
|
||||||
let client_policy_id = $('#emp_client_policy_data_list').val()
|
let client_policy_id = $('#emp_client_policy_data_list').val()
|
||||||
|
let client_id = $('#mobile_emp_client_data_list').val()
|
||||||
|
|
||||||
if (searchType == 'client') {
|
if (searchType == 'client') {
|
||||||
type = 'emp_code';
|
type = 'emp_code';
|
||||||
param = $(input).val();
|
param = $(input).val();
|
||||||
|
client_id = $('#emp_client_data_list').val()
|
||||||
}
|
}
|
||||||
let url = '<?= base_url('util/getTheEmpDataForClaimSearchByMobile/') ?>' + param + '/' + type + '/' + client_policy_id;
|
let url = '<?= base_url('util/getTheEmpDataForClaimSearchByMobile/') ?>' + param + '/' + type + '/' +
|
||||||
|
client_policy_id + '/' + client_id;
|
||||||
|
|
||||||
// Data to send in the AJAX request
|
// Data to send in the AJAX request
|
||||||
let requestData = {
|
let requestData = {
|
||||||
param: param,
|
param: param,
|
||||||
type: type,
|
type: type,
|
||||||
client_policy_id: client_policy_id,
|
client_policy_id: client_policy_id,
|
||||||
|
client_id: client_id,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Show loader
|
// Show loader
|
||||||
@ -536,7 +563,7 @@ function getTheEmpDataForClaimSearchByMobile(input, searchType = null) {
|
|||||||
sendAjaxRequestForGlobal(url, 'GET', requestData, function(response) {
|
sendAjaxRequestForGlobal(url, 'GET', requestData, function(response) {
|
||||||
console.log('Data fetched successfully:', response);
|
console.log('Data fetched successfully:', response);
|
||||||
|
|
||||||
if (response.status) {
|
if (response.status == true) {
|
||||||
console.log(response.message, 'SUCCESS');
|
console.log(response.message, 'SUCCESS');
|
||||||
if (searchType == 'client') {
|
if (searchType == 'client') {
|
||||||
appendMember(response.memberData, 'search_by_client_member');
|
appendMember(response.memberData, 'search_by_client_member');
|
||||||
@ -714,22 +741,45 @@ function setMemberData(input) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if(tpaNo == ""){
|
if (tpaNo == "") {
|
||||||
$('#claim_status_id').val(1)
|
$('#claim_status_id').val(1)
|
||||||
}else{
|
$('#non_id_reason').attr('required', true);
|
||||||
|
var $label = $("label[for='non_id_reason']");
|
||||||
|
if ($label.length && !$label.find('.text-danger').length) {
|
||||||
|
$label.append(' <span class="text-danger">*</span>');
|
||||||
|
}
|
||||||
|
} else {
|
||||||
$('#claim_status_id').val(2)
|
$('#claim_status_id').val(2)
|
||||||
|
$('#non_id_reason').attr('required', false);
|
||||||
|
var $label = $("label[for='non_id_reason']");
|
||||||
|
$label.text("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#employee_data_points').on('change', function() {
|
// $('#employee_data_points').on('change', function() {
|
||||||
|
|
||||||
|
// let value = $(this).val()
|
||||||
|
// if (value == "mobile") {
|
||||||
|
// $('#employee_data_points_label').text('Employee Mobile Number')
|
||||||
|
// } else {
|
||||||
|
// $('#employee_data_points_label').text('Employee ID')
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
|
||||||
|
$('#employee_data_points').on('change', function() {
|
||||||
|
let value = $(this).val();
|
||||||
|
let $label = $('#employee_data_points_label');
|
||||||
|
let $input = $('#emp_mobile_number_for_claim');
|
||||||
|
|
||||||
let value = $(this).val()
|
|
||||||
if (value == "mobile") {
|
if (value == "mobile") {
|
||||||
$('#employee_data_points_label').text('Employee Mobile Number')
|
$label.text('Employee Mobile Number');
|
||||||
|
$input.attr('onkeypress', 'return onlyNumbers(event)').attr('maxlength', '10');
|
||||||
} else {
|
} else {
|
||||||
$('#employee_data_points_label').text('Employee ID')
|
$label.text('Employee ID');
|
||||||
|
$input.removeAttr('onkeypress maxlength');
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
|
|
||||||
|
|
||||||
function toResetTheModelFields() {
|
function toResetTheModelFields() {
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user