Sin correo
This commit is contained in:
@@ -25,7 +25,7 @@ $data = $db->query(
|
|||||||
auditoria->>'registro_fecha_ideal' as registro_fecha_ideal,
|
auditoria->>'registro_fecha_ideal' as registro_fecha_ideal,
|
||||||
auditoria->>'profesor_clave' as profesor_clave,
|
auditoria->>'profesor_clave' as profesor_clave,
|
||||||
auditoria->>'profesor_nombre' as profesor_nombre,
|
auditoria->>'profesor_nombre' as profesor_nombre,
|
||||||
auditoria->>'profesor_correo' as profesor_correo,
|
NULLIF(auditoria->>'profesor_correo', '') as profesor_correo,
|
||||||
auditoria->>'facultad' as facultad,
|
auditoria->>'facultad' as facultad,
|
||||||
auditoria->>'materia' as materia,
|
auditoria->>'materia' as materia,
|
||||||
auditoria->>'carrera' as carrera,
|
auditoria->>'carrera' as carrera,
|
||||||
@@ -197,6 +197,7 @@ function getFormattedValue($key, $registro)
|
|||||||
'salon_array' => $registro[$key],
|
'salon_array' => $registro[$key],
|
||||||
'justificacion',
|
'justificacion',
|
||||||
'comentario' => $registro[$key] ?? "Sin registro",
|
'comentario' => $registro[$key] ?? "Sin registro",
|
||||||
|
'profesor_correo' => $registro[$key] ?? "Sin correo",
|
||||||
default => $registro[$key]
|
default => $registro[$key]
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -220,7 +221,7 @@ foreach ($data as $index => $registro) {
|
|||||||
|
|
||||||
$sheet->setCellValue($cellLocation, $value);
|
$sheet->setCellValue($cellLocation, $value);
|
||||||
|
|
||||||
if ($value == "Sin registro") {
|
if (in_array($value, ["Sin registro", "Sin asignar", "Sin correo"])) {
|
||||||
$sheet->getStyle($cellLocation)->applyFromArray(['font' => ['color' => ['argb' => 'ea0029']]]);
|
$sheet->getStyle($cellLocation)->applyFromArray(['font' => ['color' => ['argb' => 'ea0029']]]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user