MERGE_LIVE_LIVE_ISSUES
This commit is contained in:
commit
9f89a617f3
@ -503,12 +503,19 @@ class FhplApiController extends BaseController
|
||||
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"){
|
||||
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{
|
||||
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']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -5065,6 +5065,27 @@ class PolicyTransactionController extends BaseController
|
||||
}
|
||||
}
|
||||
|
||||
public function downloadInsurerStatement($id)
|
||||
{
|
||||
$statement = $this->insurerStatements
|
||||
->where('id', (int) $id)
|
||||
->where('is_active', 1)
|
||||
->first();
|
||||
|
||||
if (empty($statement) || empty($statement['file_name'])) {
|
||||
throw \CodeIgniter\Exceptions\PageNotFoundException::forPageNotFound('Statement file not found');
|
||||
}
|
||||
|
||||
$fileName = basename($statement['file_name']);
|
||||
$filePath = WRITEPATH . 'uploads/statements/' . $fileName;
|
||||
|
||||
if (!is_file($filePath)) {
|
||||
throw \CodeIgniter\Exceptions\PageNotFoundException::forPageNotFound('Statement file not found');
|
||||
}
|
||||
|
||||
return $this->response->download($filePath, null)->setFileName($fileName);
|
||||
}
|
||||
|
||||
public function getFileErr()
|
||||
{
|
||||
$file_id = $this->request->getUri()->getSegment(4);
|
||||
|
||||
@ -2197,7 +2197,7 @@
|
||||
console.log('policy_type_id', policy_type_id);
|
||||
|
||||
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);
|
||||
let increment = claimIndex;
|
||||
|
||||
@ -46,7 +46,7 @@
|
||||
$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'])
|
||||
&& (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) { ?>
|
||||
<div class="custom-control custom-switch">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user