CHANGE_BATCH_FILE
This commit is contained in:
parent
e758e4fdaa
commit
82286bb9c2
@ -2020,7 +2020,16 @@ class EmpDataServiceController extends BaseController
|
|||||||
// dd($emp_endorsement_table_data, $enrollment_file_id, $no_of_insured, $no_of_dependent);
|
// dd($emp_endorsement_table_data, $enrollment_file_id, $no_of_insured, $no_of_dependent);
|
||||||
|
|
||||||
//update the employee policy data (TPAID or UHID)
|
//update the employee policy data (TPAID or UHID)
|
||||||
|
if(!empty($emp_details)){
|
||||||
$return = $this->employeePolicyModel->bulkUpdate($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)){
|
if(in_array($file['event_type'], ['addition', 'dependent_addition']) && !empty($emp_endorsement_table_data)){
|
||||||
$this->employeePolicyModel->updateEmpEndorsementAddition($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->storeEndorsementNumber($file_id, $endorsement_id, $enrollment_file_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$this->myLogger->logme('error', 'Inception Update TPA and UHID -- set cashDepositCalculationForInception and sendMailForDownloadingECard in JOB QUEUE');
|
$this->myLogger->logme('error', 'Inception Update TPA and UHID -- set cashDepositCalculationForInception and sendMailForDownloadingECard in JOB QUEUE');
|
||||||
|
|
||||||
$policy_name = $this->getPolicyNameUsingClientPolicyId($client_policy_id);
|
$policy_name = $this->getPolicyNameUsingClientPolicyId($client_policy_id);
|
||||||
|
|||||||
@ -130,6 +130,11 @@
|
|||||||
failed <a class="fe-alert-circle" style="color: #000;" data-toggle="tooltip"
|
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 { ?>
|
<?php } else { ?>
|
||||||
|
|
||||||
<?php echo $file['status']; ?>
|
<?php echo $file['status']; ?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user