FIX_IMPORT_ERROR_LIST : RV

This commit is contained in:
VENKATESHWARAN 2025-02-04 10:03:56 +05:30
parent e8ccaefcb6
commit 7b71509977
3 changed files with 8 additions and 4 deletions

View File

@ -1496,7 +1496,9 @@ class EmpDataServiceController extends BaseController
}
} else {
$tpa_id_all[$current_tpa_id][] = $key;
if($current_tpa_id != "" && $current_tpa_id != null){
$tpa_id_all[$current_tpa_id][] = $key;
}
}
//--- TPA ID Duplicate check end ---

View File

@ -1914,6 +1914,7 @@ class EmployeeController extends AdminController
}
$excel_data = $empDataServiceController->readExcelFileToArray($file_name_with_path);
// dd($excel_data);
$excelErrorData['excel_header'] = $excel_data[0];
unset($excel_data[0]);
@ -1976,7 +1977,7 @@ class EmployeeController extends AdminController
$excelErrorData['excel_data'] = $finalArray;
$excelErrorData['file_id'] = $file_id;
// dd($finalArray);
// dd($excelErrorData);
echo view('export_import_error_list', $excelErrorData);
}

View File

@ -82,8 +82,9 @@ table.dataTable tbody td {
<?php foreach ($excel_data[$i] as $data): ?>
<td <?php if (isset($data['error'])) echo 'class="error-cell"'; ?>>
<?php
if (isset($data['value'])) {
echo $data['value'];
if (isset($data['value']) && $data['value'] != "" ) {
// echo $data['value'];
echo is_array($data['value']) ? "" : $data['value'];
}
if (isset($data['error'])) {
echo '<span class="error-icon"> <i class="fas fa-exclamation-circle" style="color: red;"></i></span>';