$tramite->Modifica_Etapa($idTramite, COMPROBACION_ETAPA_CXP, FLUJO_COMPROBACION, $aprobadorCxP); } else if($t_flujo==FLUJO_COMPROBACION_TDC){ $mensaje = sprintf("El reembolso de TDC <strong>%05s</strong> ha sido <strong>AUTORIZADO</strong> y asignado a <strong>%s</strong> para su revisión", $idTramite, $usuarioAprobador->Get_dato('nombre')); $tramite->Modifica_Etapa($idTramite, COMPROBACION_TDC_ETAPA_CXP, FLUJO_COMPROBACION_TDC, $aprobadorCxP); } else if($t_flujo==FLUJO_REEMBOLSO_CAJA_CHICA){ $mensaje = sprintf("El reembolso de Caja Chica <strong>%05s</strong> ha sido <strong>AUTORIZADO</strong> y asignado a <strong>%s</strong> para su revisión", $idTramite, $usuarioAprobador->Get_dato('nombre')); $tramite->Modifica_Etapa($idTramite, COMPROBACION_CAJA_CHICA_ETAPA_CXP, FLUJO_REEMBOLSO_CAJA_CHICA, $aprobadorCxP); } $tramite->AgregaSiguienteAutorizador($idTramite, $aprobador); // Manda el mensaje a las 3 partes de la transaccion $tramite->EnviaNotificacion($idTramite, $mensaje, $iniciador, $aprobador); $tramite->EnviaNotificacion($idTramite, $mensaje, $iniciador, $aprobadorCxP); $tramite->EnviaNotificacion($idTramite, $mensaje, $iniciador, $iniciador); } header("Location: ./index.php?action=autorizar"); die(); // // Rechaza el gasto adicional // } else if(isset($_POST["rechazar"])){