CHANGE_BATCH_FILE

This commit is contained in:
VENKATESHWARAN 2025-09-19 10:36:41 +05:30
parent e758e4fdaa
commit 82286bb9c2
2 changed files with 16 additions and 3 deletions

View File

@ -2020,7 +2020,16 @@ class EmpDataServiceController extends BaseController
// dd($emp_endorsement_table_data, $enrollment_file_id, $no_of_insured, $no_of_dependent);
//update the employee policy data (TPAID or UHID)
$return = $this->employeePolicyModel->bulkUpdate($emp_details);
if(!empty($emp_details)){
$return = $this->employeePolicyModel->bulkUpdate($emp_details);
}else{
$this->batchFileModel->update($file_id, [
'count' => 0,
'status' => "failed-6",
'amount' => 0,
]);
return ['status' => 'error', 'message' => 'There is no data to update']; // Return error code
}
if(in_array($file['event_type'], ['addition', 'dependent_addition']) && !empty($emp_endorsement_table_data)){
$this->employeePolicyModel->updateEmpEndorsementAddition($emp_endorsement_table_data);
@ -2048,7 +2057,6 @@ class EmpDataServiceController extends BaseController
$this->storeEndorsementNumber($file_id, $endorsement_id, $enrollment_file_id);
}
$this->myLogger->logme('error', 'Inception Update TPA and UHID -- set cashDepositCalculationForInception and sendMailForDownloadingECard in JOB QUEUE');
$policy_name = $this->getPolicyNameUsingClientPolicyId($client_policy_id);

View File

@ -128,7 +128,12 @@
<?php } else if ($file['status'] == 'failed-5') { ?>
failed <a class="fe-alert-circle" style="color: #000;" data-toggle="tooltip"
data-placement="top" title="Wrong File Uploaded"></a>
data-placement="top" title="Wrong File Uploaded"></a>
<?php } else if ($file['status'] == 'failed-6') { ?>
failed <a class="fe-alert-circle" style="color: #000;" data-toggle="tooltip"
data-placement="top" title="There is no data to update"></a>
<?php } else { ?>