diff --git a/app/Controllers/FhplApiController.php b/app/Controllers/FhplApiController.php index 1d280ea5..b2ec8b1c 100644 --- a/app/Controllers/FhplApiController.php +++ b/app/Controllers/FhplApiController.php @@ -418,6 +418,14 @@ class FhplApiController extends BaseController if (empty($batchFiles)) { log_message('error', 'FHPL - TPA ID Pull FAILED | batchFiles is empty for this tpa id pull request'); + + $file_model = new BatchFileModel(); + $bfData = [ + 'error_data' => json_encode(['error_data' => 'No trace found for TPA member download (export).']), + 'status' => 'failed-7', + ]; + $file_model->where('id', $requestData['file_id'])->set($bfData)->update(); + if($function_calling_type == "job"){ return ['status' => false, 'message' => 'batchFiles not found']; }else{ @@ -543,7 +551,7 @@ class FhplApiController extends BaseController $sql = "UPDATE employee_polices SET tpa_id = ? WHERE id = ?"; - $this->db->query($sql, [$m['TPA_TPADETAIL_ID'], $policy['emp_policy_id']]); + $this->db->query($sql, [$m['TPA_TPADetailID'], $policy['emp_policy_id']]); // for e-card send if(strtolower(trim($policy['relationship'])) == 'self'){ @@ -552,7 +560,7 @@ class FhplApiController extends BaseController if ($this->db->affectedRows() > 0) { $updated++; - log_message('error', "FHPL - TPA ID Pull Updated tpa_id={$m['TPA_TPADETAIL_ID']} for emp_policy_id={$policy['emp_policy_id']} policy={$policyNo}"); + log_message('error', "FHPL - TPA ID Pull Updated tpa_id={$m['TPA_TPADetailID']} for emp_policy_id={$policy['emp_policy_id']} policy={$policyNo}"); } else { log_message('error', "FHPL - TPA ID Pull No update (already set or not matched) for emp_policy_id={$policy['emp_policy_id']} policy={$policyNo}"); } diff --git a/app/Controllers/HealthIndiaApiController.php b/app/Controllers/HealthIndiaApiController.php index f498f039..49a573bd 100644 --- a/app/Controllers/HealthIndiaApiController.php +++ b/app/Controllers/HealthIndiaApiController.php @@ -490,6 +490,14 @@ class HealthIndiaApiController extends BaseController if (empty($batchFiles)) { log_message('error', 'HEALTH_INDIA - TPA ID Pull FAILED | batchFiles is empty for this tpa id pull request'); + + $file_model = new BatchFileModel(); + $bfData = [ + 'error_data' => json_encode(['error_data' => 'No trace found for TPA member download (export).']), + 'status' => 'failed-7', + ]; + $file_model->where('id', $requestData['file_id'])->set($bfData)->update(); + if ($function_calling_type == "job") { return ['status' => false, 'message' => 'batchFiles not found']; } else { diff --git a/app/Controllers/VidalApiController.php b/app/Controllers/VidalApiController.php index 2e6fa28f..d1fd6b40 100644 --- a/app/Controllers/VidalApiController.php +++ b/app/Controllers/VidalApiController.php @@ -828,6 +828,14 @@ class VidalApiController extends BaseController if (empty($batchFiles)) { log_message('error', 'VIDAL - TPA ID Pull FAILED | batchFiles is empty for this tpa id pull request'); + + $file_model = new BatchFileModel(); + $bfData = [ + 'error_data' => json_encode(['error_data' => 'No trace found for TPA member download (export).']), + 'status' => 'failed-7', + ]; + $file_model->where('id', $requestData['file_id'])->set($bfData)->update(); + if($function_calling_type == "job"){ return ['status' => false, 'message' => 'batchFiles not found']; }else{ @@ -1109,6 +1117,14 @@ class VidalApiController extends BaseController if (empty($batchFiles)) { log_message('error', 'VIDAL V2 - TPA ID Pull FAILED | batchFiles is empty for this tpa id pull request'); + + $file_model = new BatchFileModel(); + $bfData = [ + 'error_data' => json_encode(['error_data' => 'No trace found for TPA member download (export).']), + 'status' => 'failed-7', + ]; + $file_model->where('id', $requestData['file_id'])->set($bfData)->update(); + if ($function_calling_type === 'job') { return ['status' => false, 'message' => 'batchFiles not found']; } diff --git a/app/Views/batch_list.php b/app/Views/batch_list.php index c7618915..8849f24f 100755 --- a/app/Views/batch_list.php +++ b/app/Views/batch_list.php @@ -373,7 +373,7 @@ for ($i = 0; $i < $batch_col_count; $i++) { failed + data-placement="top" title="">