} else { } //Se checa si excede los parametros de tolerancia para el copsto del boleto de avion if ($Etapa_del_tramite == 3 || $Etapa_del_tramite == '3') { if ($sTipoViaje == "Nacional") { $parametroTolerancia = 500; } else { if ($sTipoViaje == "Continental" || $sTipoViaje == "Intercontinental") { $parametroTolerancia = 2000; } } if ($nCostoViajeTotal - $nCostoViajeTotalCotizacion > $parametroTolerancia) { $exedeParametrosDeTolerancia = true; } } $CViaje->Edit_Itinerario_Viaje($nId_itinerario, $sTipoViaje, $sAerolinea, $nCostoViaje, $nCostoViajeTotal, $nCostoViajeTotalCotizacion, $nIva, $nTua, $sfechaSalida, $sfechaLlegada, $tipo_aerolinea, 1); } } //for // Carga los datos del itinerario - hotel for ($i = 1; $i <= $_POST['rowCountHotel2'] + $_POST['rowCountHotel']; $i++) { //Partidas de Itinerario if (isset($_POST['id_itinerario_hotel' . $i])) { $nId_itinerario = $_POST['id_itinerario_hotel' . $i]; $ciudad_hotel = $_POST['ciudad_hotel' . $i]; $nombre_hotel = $_POST['nombre_hotel' . $i]; $noches_hotel = $_POST['noches_de_hospedaje' . $i]; $caract_hab_hotel = $_POST['caracteristicas_habitacion' . $i]; $subtotal_hotel = $_POST['subtotal_hotel' . $i]; $otros_cargos_hotel = $_POST['otros_cargos' . $i]; $no_reservacion_hotel = $_POST['no_de_reservacion' . $i];