FIX_CLAIM_HISTORY_TOGGLE_NOT_SHOWING_FOR_EDLI_AND_GTLI
This commit is contained in:
parent
1357d2bcdb
commit
c2c4c18faf
@ -503,12 +503,19 @@ class FhplApiController extends BaseController
|
|||||||
log_message('error', "Failed to update file table status.");
|
log_message('error', "Failed to update file table status.");
|
||||||
}
|
}
|
||||||
|
|
||||||
log_message('error', 'FHPL - TPA ID Pull API FAILED | API failed: Empty menber data for this pull request');
|
log_message('error', 'FHPL - TPA ID Pull API FAILED | API failed: Empty member data for this pull request');
|
||||||
|
|
||||||
|
$file_model = new BatchFileModel();
|
||||||
|
$bfData = [
|
||||||
|
'error_data' => json_encode(['error_data' => 'API failed: Empty member data for this pull request.']),
|
||||||
|
'status' => 'failed-7',
|
||||||
|
];
|
||||||
|
$file_model->where('id', $requestData['file_id'])->set($bfData)->update();
|
||||||
|
|
||||||
if($function_calling_type == "job"){
|
if($function_calling_type == "job"){
|
||||||
return ['status' => false, 'message' => 'API call failed', 'data' => 'Empty menber data for this pull request'];
|
return ['status' => false, 'message' => 'API call failed', 'data' => 'Empty member data for this pull request'];
|
||||||
}else{
|
}else{
|
||||||
return $this->respond(['status' => false, 'message' => 'API call failed', 'data' => 'Empty menber data for this pull request']);
|
return $this->respond(['status' => false, 'message' => 'API call failed', 'data' => 'Empty member data for this pull request']);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2197,7 +2197,7 @@
|
|||||||
console.log('policy_type_id', policy_type_id);
|
console.log('policy_type_id', policy_type_id);
|
||||||
|
|
||||||
let lead_type = $('#lead_type').val();
|
let lead_type = $('#lead_type').val();
|
||||||
let showClaimHistorySwitch = lead_type == 2 && policy_type_id == 1;
|
let showClaimHistorySwitch = lead_type == 2 && (policy_type_id == 1 || policy_type_id == 6 || policy_type_id == 7);
|
||||||
|
|
||||||
console.log('claimIndex from parent', claimIndex);
|
console.log('claimIndex from parent', claimIndex);
|
||||||
let increment = claimIndex;
|
let increment = claimIndex;
|
||||||
|
|||||||
@ -46,7 +46,7 @@
|
|||||||
$isClaimHistoryChecked = (isset($lead_edit_data['claim_history']) && (int) $lead_edit_data['claim_history'] === 1) || !empty($savedClaims);
|
$isClaimHistoryChecked = (isset($lead_edit_data['claim_history']) && (int) $lead_edit_data['claim_history'] === 1) || !empty($savedClaims);
|
||||||
$showClaimHistorySwitch = isset($lead_edit_data['lead_type'], $lead_edit_data['policy_type_id'])
|
$showClaimHistorySwitch = isset($lead_edit_data['lead_type'], $lead_edit_data['policy_type_id'])
|
||||||
&& (int) $lead_edit_data['lead_type'] === 2
|
&& (int) $lead_edit_data['lead_type'] === 2
|
||||||
&& (int) $lead_edit_data['policy_type_id'] === 1;
|
&& in_array((int) $lead_edit_data['policy_type_id'], [1, 6, 7], true);
|
||||||
?>
|
?>
|
||||||
<?php if ($showClaimHistorySwitch) { ?>
|
<?php if ($showClaimHistorySwitch) { ?>
|
||||||
<div class="custom-control custom-switch">
|
<div class="custom-control custom-switch">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user