'FIX_EMP_MODULE_EXPORT_IMPORT_INCEPTION_RV'
This commit is contained in:
parent
4e7c0c3f49
commit
63e4200281
@ -618,9 +618,16 @@ class EmpDataServiceController extends BaseController
|
|||||||
|
|
||||||
foreach ($empty_emp_tpa_uh_ids as $key => $id) {
|
foreach ($empty_emp_tpa_uh_ids as $key => $id) {
|
||||||
|
|
||||||
$dataToUpdate = ['tpa_id' => $tpa_id[$key], 'uhid' => $uhid[$key]];
|
$dataToUpdateTPAID = ['tpa_id' => $tpa_id[$key]];
|
||||||
|
$dataToUpdateUHID = ['uhid' => $uhid[$key]];
|
||||||
|
|
||||||
$this->employeePolicyModel->where('id', $id)
|
$this->employeePolicyModel->where('id', $id)
|
||||||
->set($dataToUpdate)->update();
|
->where('(employee_polices.tpa_id IS NULL OR employee_polices.tpa_id = "")')
|
||||||
|
->set($dataToUpdateTPAID)->update();
|
||||||
|
|
||||||
|
$this->employeePolicyModel->where('id', $id)
|
||||||
|
->where('(employee_polices.uhid IS NULL OR employee_polices.uhid = "")')
|
||||||
|
->set($dataToUpdateUHID)->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -351,8 +351,14 @@ class EmployeeController extends AdminController
|
|||||||
|
|
||||||
$return = $empDataServiceController->generateExcelForAdditionandInception($batch_data);
|
$return = $empDataServiceController->generateExcelForAdditionandInception($batch_data);
|
||||||
if(!$return){
|
if(!$return){
|
||||||
session()->setFlashdata('error', 'No data found about this action');
|
if($insurer_or_tpa == 'tpa'){
|
||||||
|
session()->setFlashdata('error', "No data was found for this action. The TPA ID has already been updated.");
|
||||||
return redirect()->to(base_url('employee/upload'));
|
return redirect()->to(base_url('employee/upload'));
|
||||||
|
|
||||||
|
}else if($insurer_or_tpa == 'insurer'){
|
||||||
|
session()->setFlashdata('error', "No data was found for this action. The UHID has already been updated.");
|
||||||
|
return redirect()->to(base_url('employee/upload'));
|
||||||
|
}
|
||||||
} else{
|
} else{
|
||||||
$this->myLogger->logme('error','Successfully exported Excel file in {data}.', ['data' => $event_type]);
|
$this->myLogger->logme('error','Successfully exported Excel file in {data}.', ['data' => $event_type]);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user