From 62f80e66e532ceafc4b02d2d9704f605dae40daf Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 21 Feb 2025 13:19:43 -0600 Subject: [PATCH] Supervisor Excel --- export/supervisor_excel.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/export/supervisor_excel.php b/export/supervisor_excel.php index ffdeb32..880670d 100644 --- a/export/supervisor_excel.php +++ b/export/supervisor_excel.php @@ -47,7 +47,8 @@ $data = $db->query( registro_retardo, usuario_nombre, registro_fecha_supervisor, - registro.estado_supervisor_id, + estado_supervisor.estado_supervisor_id, + estado_supervisor.nombre, comentario, justificacion FROM horario @@ -62,6 +63,7 @@ $data = $db->query( LEFT JOIN REGISTRO USING (profesor_id, registro_fecha_ideal, horario_id) LEFT JOIN usuario ON usuario.usuario_id = REGISTRO.supervisor_id + JOIN estado_supervisor ON estado_supervisor.estado_supervisor_id = COALESCE(REGISTRO.estado_supervisor_id, 0) WHERE profesor_clave = COALESCE(:profesor_clave, profesor_clave) AND horario.facultad_id = COALESCE(:facultad_id, horario.facultad_id) ORDER BY fechas.registro_fecha_ideal, horario_hora",