diff --git a/action/action_auditoria.php b/action/action_auditoria.php index 00572af..6e5fdd1 100644 --- a/action/action_auditoria.php +++ b/action/action_auditoria.php @@ -43,7 +43,7 @@ try { WHERE usuario_id = :usuario_id ), INSERTION AS ( INSERT INTO last_auditoria - SELECT :usuario_id, to_jsonb(AUDITORIA_DATA) FROM AUDITORIA_DATA + SELECT :usuario_id, to_jsonb(AUDITORIA_DATA), registro_fecha_ideal, horario_id, profesor_id FROM AUDITORIA_DATA WHERE REGISTRO_FECHA_IDEAL IS NOT NULL ) SELECT @@ -66,8 +66,9 @@ try { registro_fecha_supervisor, comentario, registro_justificada, + justificacion, reposicion_id - FROM AUDITORIA_DATA", + FROM AUDITORIA_DATA ORDER BY registro_fecha_ideal, horario_hora", $params ); // Print the JSON file