alert('This client does not have an email associate');die();"; } $conductor = $row[AR7Link2_PER]; if ($conductor !="" AND $conductor !=0){ $cantC1=LeerStd($conductores,"410PER","*","PERCodigo = '$conductor'","","","",""); $rowC1=mysql_fetch_array($conductores); $conductor=$rowC1[PERNombre]; } $lugarAlquiler = $row[AR7Link1_EST]; $cantE1=LeerStd($estaciones1,"410EST","*","ESTCodigo = '$lugarAlquiler'","","","",""); $rowE1=mysql_fetch_array($estaciones1); $lugarAlquiler = $rowE1[ESTNombre]; $ciudadAlquiler = $rowE1[ESTLista3]; $fechaAlquiler = $row[AR7Fecha1]; $horaAlquiler = $row[AR7Hora1]; $lugarDevolucion = $row[AR7Link2_EST]; $cantE2=LeerStd($estaciones2,"410EST","*","ESTCodigo = '$lugarDevolucion'","","","",""); $rowE2=mysql_fetch_array($estaciones2); $lugarDevolucion = $rowE2[ESTNombre]; $ciudadDevolucion = $rowE2[ESTLista3]; $fechaDevolucion = $row[AR7Fecha2]; $horaDevolucion = $row[AR7Hora2]; $diasAlquiler = $row[AR7Cant1]; $subgrupo = $row[AR7Link1_SUB]; $cantS=LeerStd($subgr,"410SUB","*","SUBCodigo = '$subgrupo'","","","",""); $rowS=mysql_fetch_array($subgr); $subgrupoDesc = $rowS[SUBLinea2]; $grupo = $rowS[SUBLista1]; $precio = $row[AR7Link1_EVE]; $cantP=LeerStd($precios,"410EVE","*","EVECodigo = '$precio'","","","",""); $rowP=mysql_fetch_array($precios); $precio = $rowP[EVENombre]; $precioFamilia = $rowP[EVELista2]; $codTarifa = $rowP[EVELinea2]; $proyecto = $row[AR7Linea59]; if($proyecto == ''){ $cantTAR=LeerStd($tar,"410AR9","*","AR9Link1_SUB = '$subgrupo' AND AR9Linea1 ='$codTarifa' AND AR9Fecha1<= '$fechaAlquiler' AND (AR9Fecha2 = '0000-00-00' OR AR9Fecha2>='$fechaAlquiler' OR AR9Fecha2= '')","","","",""); $rowTAR = mysql_fetch_array($tar); } else{ $cantPRY=LeerStd($pry,"410PYT","*","PYTCodigo = '$proyecto' ","","","",""); $rowPry=mysql_fetch_array($pry); $cantTAR=LeerStd($tar,"410AR9","*","AR9Link1_SUB = '$subgrupo' AND AR9Linea1 ='$rowPry[PYTLinea2]' AND AR9Fecha1<= '$fechaAlquiler' AND (AR9Fecha2 = '0000-00-00' OR AR9Fecha2>='$fechaAlquiler' OR AR9Fecha2= '')","","","",""); $rowTAR = mysql_fetch_array($tar); } $alquiler = $row[AR7Monto4]; $subtotal = $row[AR7Monto5]; $descuento = $row[AR7Cant2]; $fechaReserva = $row[AR7Fecha4]; $horaReserva = $row[AR7Hora4]; $localizador = $row[AR7Linea13]; $fechaauxiliar=explode("-", $fechaAlquiler); $fechaauxiliar2=explode("-", $fechaDevolucion); $fechaauxiliar3=explode("-", $fechaReserva); $fechaAlquiler =$fechaauxiliar[2]."/".$fechaauxiliar[1]."/".$fechaauxiliar[0]; $fechaDevolucion =$fechaauxiliar2[2]."/".$fechaauxiliar2[1]."/".$fechaauxiliar2[0]; $fechaReserva =$fechaauxiliar3[2]."/".$fechaauxiliar3[1]."/".$fechaauxiliar3[0]; $ParamLoc = LeerStd($buscarParam, '410PRM', "*", "PRMNombre='DIA'", "", "", "", ""); $rowParam = mysql_fetch_array($buscarParam); $horaParaDiaAdicional =$rowParam[PRMLinea2]; if (strtotime($fechaAlquiler) == strtotime($fechaDevolucion)){ $diasAlquiler=1; $horaAdic=0; } else { if (strtotime ($horaDevolucion)> strtotime ($horaAlquiler)){ $horaiHoy=substr($horaDevolucion,0,2); $miniHoy=substr($horaDevolucion,3,2); $ini=((($horaiHoy*60)*60)+($miniHoy*60)); $horafAlquiler=substr($horaAlquiler,0,2); $minfAlquiler=substr($horaAlquiler,3,2); $fin=((($horafAlquiler*60)*60)+($minfAlquiler*60)); $dif=$ini-$fin; $cantHoras=floor($dif/3600); //$cantHoras =$horaDevolucion-$horaAlquiler; if($cantHoras>=$horaParaDiaAdicional){ $horaAdic=0; } else{ $horaAdic=$cantHoras; } } else { $horaAdic=0; } } $alquilerSubTotal = $alquiler + ($horaAdic*$row[AR7Monto10]); $alquilerDcto=($alquiler+($horaAdic*$row[AR7Monto10]))-((($alquiler+($horaAdic*$row[AR7Monto10]))*$descuento)/100); $mensaje="
IATA: | $row[AR7Linea8] |
VT: | $row[AR7Linea38] |
Client: | $cliente |
Gold/Platinum: | $MembGold |
Inverunion: | $MembInveru |
Viajero Frecuente: | $MembViaje |
Nb. CDP: | $MembCPD |
Driver: | $conductor |
Confirmation Number: | $localizador |
Renatl Location: | $row[AR7Linea49] |
Rental Location: | $lugarAlquiler |
City: | $ciudadAlquiler |
Date: | $fechaAlquiler |
Hour: | $horaAlquiler |
Return Location: | $row[AR7Linea50] |
Return Location: | $lugarDevolucion |
City: | $ciudadDevolucion |
Date: | $fechaDevolucion |
Hour: | $horaDevolucion |
Type Vehicle: | $row[AR7Linea51] o similar grupo '$row[AR7Linea54]' |
Rental Days: | $diasAlquiler |
Type Vehicle: | $subgrupoDesc o similar grupo '$grupo' |
Rental Time: | $Tiempo $Basado |
Rate: | $row[AR7Linea44] |
Rate: | List Rate $precioFamilia |
Rate Includes: | |
Rental: | ".number_format($alquiler, 2, ',','.')." |
Additional hours: | ".number_format($horaAdic*$row[AR7Monto10], 2, ',','.')." |
Rental without Discount: | ".number_format($alquilerSubTotal, 2, ',','.')." |
% Discount: | $descuento |
Rental with Discount: | ".number_format($alquilerDcto, 2, ',','.')." |
Rental Subtotal: | ".number_format($alquilerDcto, 2, ',','.')." |
$row4[AR4Linea1]: | ".number_format($rowRDT[RDTMonto1], 2, ',','.')." |
Conductor Principal Menor: | ".number_format($monto2, 2, ',','.')." |
$contAdic Additional Conductor: | ".number_format($total, 2, ',','.')." |
Drop off (".$cantidadKMS." kms) | ".number_format($dropoff, 2, ',','.')." |
Subtotal without Tax VEB: | ".$Bs."".number_format($subtotal, 2, ',','.')." |
Subtotal without Tax VEB: | ".$Bs."".number_format($subtotal, 2, ',','.')." |
PREPAID | |
Number of Prepaid: | $NumVauc |
Prepaid Amount VEB: | ".$Bs."".number_format($row[AR7Monto11], 2, ',','.')." |
Date Prepaid Emission: | $fehcaPrepa |
CONDITIONS | |
- Remember show all the valid documents : Internacional driver licence, passport, credit card. | |
".$PRM['NEMP']." | |