From ccf1eb8531208faf46534059813faa0380a19d52 Mon Sep 17 00:00:00 2001 From: AlexLara Date: Wed, 26 Mar 2025 13:35:03 -0600 Subject: [PATCH] =?UTF-8?q?Cambio=20Excel=20de=20auditor=C3=ADa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- export/supervisor_excel.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/export/supervisor_excel.php b/export/supervisor_excel.php index d7e2036..5dad877 100644 --- a/export/supervisor_excel.php +++ b/export/supervisor_excel.php @@ -48,7 +48,10 @@ $data = $db->query( FROM horario NATURAL JOIN horario_profesor NATURAL JOIN profesor - JOIN fechas ON EXTRACT(DOW FROM fechas.registro_fecha_ideal) = horario_dia + JOIN fechas + ON EXTRACT(DOW FROM fechas.registro_fecha_ideal) = horario_dia + AND fechas.registro_fecha_ideal >= horario_fecha_inicio::date + AND (horario_fecha_fin IS NULL OR fechas.registro_fecha_ideal < horario_fecha_fin::date) NATURAL JOIN salon_view_mat JOIN facultad ON facultad.facultad_id = COALESCE(horario.facultad_id, 0)