<style>
.midnight-blue{	background:#2c3e50;	padding: 4px 4px 4px; color:white;	font-weight:bold; font-size:12px;}
.silver{ background:white; padding: 3px 4px 3px;}
.clouds{ background: #CDE4F5; padding: 3px 4px 3px;}
</style>
<?php
session_start();
if(!isset($_SESSION['user_login_status']) AND $_SESSION['user_login_status'] != 1) 
{
	header("location: ../../login.php");
	exit;
}
include("../../config/db.php");
include("../../config/conexion.php");
$id_factura=intval($_GET['id_factura']);
$sql_factura=mysqli_query($con,"select * from facturas where id_factura='".$id_factura."'");
$rw_factura=mysqli_fetch_array($sql_factura);
$numero_factura=$rw_factura['numero_factura'];
$id_cliente=$rw_factura['id_cliente'];
$id_vendedor=$rw_factura['id_vendedor'];
$fecha_factura=$rw_factura['fecha_factura'];
$ref=$rw_factura['ref'];
$condiciones=$rw_factura['condiciones'];
$tienda_factura=$rw_factura['almacen'];
$condiciones_efe=$rw_factura['condiciones_efe'];
$condiciones_efed=$rw_factura['condiciones_efed'];
$condiciones_tra=$rw_factura['condiciones_tra'];
$condiciones_pun=$rw_factura['condiciones_pun'];
$tasa=$rw_factura['tasa'];
$credito=$rw_factura['credito'];


	

?>

<page backtop="10mm" backbottom="10mm" backleft="10mm" backright="10mm">
    <page_header>
        
               <img style="width: 100%;" src="../../img/logotiendas.png" alt="Logo">
        
    </page_header>
    <page_footer>
        <table style="width: 100%; border: solid 1px black;">
            <tr>
                <td style="text-align: left;    width: 50%">FONTUR TIENDA</td>
                <td style="text-align: right;    width: 50%">page [[page_cu]]/[[page_nb]]</td>
            </tr>
        </table>
    </page_footer>
	<br>
	<br>
    <table style="width:100%;">
        <tr>
            <td style="width: 100%; color: #444444;">
            <img style="width: 100%;" src="../../img/cintillo-cedil.png" alt="Logo">
            </td>
        </tr>
    </table>
    <br>
	<br>
    <table cellspacing="0" style="width: 100%;">
    	<tr>
      		<td style="width: 40%; font-size:20px; text-align:center;"><strong>NOTA DE ENTREGA</strong></td>
	  		<td style="width: 30%; font-size:12px; text-align:center;"></td>
			<td style="width: 30%; font-size:12px; text-align:right;"><?php echo $tienda_factura;?></td>	
        </tr>
    </table>
    <br>
    
   	<?php 
  	$query2=mysqli_query($con, "select * from tasa where id_tasa='1'");
	while ($row2=mysqli_fetch_array($query2))
	{
		$id_tasa=$row2['id_tasa'];
		$tasa_actual=$row2['tasa'];
		$ult_act=$row2['fecha'];
	}
   	$sql_cliente=mysqli_query($con,"select * from clientes where id_cliente='$id_cliente'");
	$rw_cliente=mysqli_fetch_array($sql_cliente);
   	?> 
	<table cellspacing="0" style="width: 100%; text-align: left; font-size: 11pt;">
    	<tr>
            <td style="width:20%; border:#000;"><strong>CLIENTE</strong></td>
            <td style="width:50%; border:#000;"><?php echo $rw_cliente['nombre_cliente'];?></td>
		    <td style="width:15%; border:#000;"><strong>NUMERO</strong></td>
	    	<td style="width:15%; border:#000;"><?php echo $numero_factura;?></td>
		</tr>
   	</table>
   	<table cellspacing="0" style="width: 100%; text-align: left; font-size: 11pt;">     
		<tr>
    		<td style="width:20%; border:#000;"><strong>CEDULA / RIF</strong></td>
	   		<td style="width:50%; border:#000;"><?php echo $rw_cliente['rif_cliente'];?></td>
			<td style="width:15%; border:#000;"><strong>FECHA</strong></td>
	   		<td style="width:15%; border:#000;"><?php echo $fecha_factura;?></td>
		</tr>
    </table>
	<table cellspacing="0" style="width: 100%; text-align: left; font-size: 11pt;">     
		<tr>
    		<td style="width:20%; border:#000;"><strong>DOMICILIO</strong></td>
	   		<td style="width:50%; border:#000;"><?php echo $rw_cliente['direccion_cliente'];?></td>
			<td style="width:15%; border:#000;"><strong>GARANTIA</strong></td>
	   		<td style="width:15%; border:#000;"></td>
		</tr>
    </table>
	<table cellspacing="0" style="width: 100%; text-align: left; font-size: 11pt;">     
		<tr>
    		<td style="width:20%; border:#000;"><strong>CORREO</strong></td>
	   		<td style="width:50%; border:#000;"><?php echo $rw_cliente['email_cliente'];?></td>
			<td class='clouds' style="width:30%; border:#000;"><strong>TIPO/CONDICION</strong></td>
		</tr>
    </table>
	<table cellspacing="0" style="width: 100%; text-align: left; font-size: 11pt;">     
		<tr>
    		<td style="width:20%; border:#000;"><strong>TELEFONO</strong></td>
	   		<td style="width:50%; border:#000;"><?php echo $rw_cliente['telefono_cliente'];?></td>
			<td style="width:30%; border:#000;"><?php echo $rw_cliente['organizacion_cliente'];?></td>
		</tr>
    </table>
	<table cellspacing="0" style="width: 100%; text-align: left; font-size: 11pt;">     
		<tr>
    		<td style="width:20%; border:#000;"><strong>ENTE/LINEA</strong></td>
	   		<td style="width:50%; border:#000;"><?php echo $rw_cliente['contacto_cliente'];?></td>
			<td class='clouds' style="width:20%; border:#000;"><strong>TASA DE CAMBIO</strong></td>
	   		<td style="width:10%; border:#000;"><?php echo $tasa_actual;?>BsD</td>
		</tr>
    </table>
   
	<br>
  	<table cellspacing="0" style="width: 100%; border:#000; text-align: left; font-size: 10pt;">
        <tr class='clouds'>
            <th style="width: 5%; border:#000; text-align:center;">NRO</th>
            <th style="width: 50%; border:#000;">ARTICULO</th>
            <th style="width: 7%; border:#000; text-align: right;">CANT</th>
			<th style="width: 19%; border:#000; text-align: right;">PRECIO UNIT.</th>
            <th style="width: 19%; border:#000; text-align: right;">MONTO</th>
        </tr>

		<?php
		$bolivar_a_dolar=$condiciones_efe/$tasa;
		$bolivar_a_dolarf=number_format($bolivar_a_dolar,1,",", ".");
		$nums=1;
		$sumador_total=0;
		$sql=mysqli_query($con, "select * from products, detalle_factura, facturas where products.id_producto=detalle_factura.id_producto and detalle_factura.numero_factura=facturas.numero_factura and facturas.id_factura='".$id_factura."'");

		while ($row=mysqli_fetch_array($sql))
		{
			$id_producto=$row["id_producto"];
			$codigo_producto=$row['codigo_producto'];
			$cantidad=$row['cantidad'];
			$nombre_producto=$row['nombre_producto'];
	
			//$precio_venta=$row['precio_venta']/(1+(TAX/100));
			$precio_venta=$row['precio_venta'];
			$precio_venta_f=number_format($precio_venta,1);//Formateo variables
			$precio_venta_r=str_replace(",","",$precio_venta_f);//Reemplazo las comas
			$precio_total=$precio_venta_r*$cantidad;
			$precio_total_f=number_format($precio_total,1);//Precio total formateado
			$precio_total_r=str_replace(",","",$precio_total_f);//Reemplazo las comas
			$sumador_total+=$precio_total_r;//Sumador
	
			$dolar_a_bolivar=$precio_venta*$tasa;
			$dolar_a_bolivarf=number_format($dolar_a_bolivar,1,",", ".");
	
			$dolar_a_bolivar_sum=$sumador_total*$tasa;
			$dolar_a_bolivar_sumf=number_format($dolar_a_bolivar_sum,1,",", ".");

			$dolar_a_bolivar_mon=$precio_total*$tasa;
			$dolar_a_bolivar_monf=number_format($dolar_a_bolivar_mon,1,",", ".");
	
			?>
	       	<tr>
            	<td style="width: 5%; border:#000;  text-align: center;"><?php echo $nums; ?></td>
	            <td style="width: 50%; border:#000; text-align: left;"><?php echo $nombre_producto;?></td>
    	         <td style="width: 7%; border:#000; text-align: right;"><?php echo $cantidad;?></td>
            	<td style="width: 19%; border:#000; text-align: right;">BsD <?php echo $dolar_a_bolivarf;?></td>
        	    <td class='clouds' style="width: 19%; border:#000; text-align: right;">BsD <?php echo $dolar_a_bolivar_monf;?></td>
        	</tr>
			<?php 
			$nums++;
		}
		$subtotal=number_format($sumador_total,2,'.','');
		//$total_iva=($subtotal * TAX )/100;
		//$total_iva=number_format($total_iva,1,'.','');
		//$total_factura=$subtotal+$total_iva;
		$total_factura=$subtotal;
	
		$subtotalf=number_format($subtotal,2,",", ".");
		$dolar_a_bolivarsub=$subtotal*$tasa;
		$dolar_a_bolivarsubf=number_format($dolar_a_bolivarsub,2,",", ".");
		
		//$total_ivaf=number_format($total_iva,1,",", ".");
		//$dolar_a_bolivariva=$total_iva*$tasa_actual;
		//$dolar_a_bolivarivaf=number_format($dolar_a_bolivariva,1,",", ".");
		
		$total_facturaf=number_format($total_factura,2,",", ".");
		$dolar_a_bolivarfact=$total_factura*$tasa;
		$dolar_a_bolivarfactf=number_format($dolar_a_bolivarfact,2,",", ".");
		?>
	  	<tr>
        	<td style="widtd: 15%; text-align: right;"></td>
		    <td colspan="3" style="widtd: 81%; text-align: right;"><strong>SUBTOTAL </strong></td>
            <td class='clouds' style="widtd: 19%; text-align: right;">BsD <?php echo $dolar_a_bolivarsubf;?></td>
        </tr>
		<tr>
			<td style="widtd: 19%; text-align: right;"></td>
            <td colspan="3" style="widtd: 81%; text-align: right;"><strong>IVA (<?php //echo TAX; ?>0)% </strong></td>
            <td class='clouds' style="widtd: 19%; text-align: right;">BsD 0<?php //echo $dolar_a_bolivarivaf;?></td>
        </tr>
		<tr>
        	<td style="widtd: 19%; text-align: right;"></td>
            <td colspan="3" style="widtd: 81%; text-align: right;"><strong>TOTAL A PAGAR</strong></td>
            <td class='clouds' style="widtd: 19%; text-align: right;">BsD <?php echo $dolar_a_bolivarfactf;?></td>
        </tr>
		<tr>
        	<td style="widtd: 19%; text-align: right;"></td>
            <td colspan="3" style="widtd: 81%; text-align: right;"><strong>DIVISAS</strong></td>
            <td class='clouds' style="widtd: 19%; text-align: right;">$. <?php echo number_format($total_factura,2,",", ".");?></td>
        </tr>
    </table>
	
	<table cellspacing="0" style="width: 100%; border:#000; text-align: left; font-size: 10pt;">
		<tr class='clouds'>
			<th colspan="5" style="width: 100%; border:#000; text-align:center;">FORMA DE PAGO</th>
		</tr>
		<?php if($credito=="SI")
		{
		?>
		<tr bgcolor="#0000CC">
			<th colspan="5" style="width: 100%; border:#000; text-align:center; color:#FFFFFF;">CREDITO AUTORIZADO</th>
		</tr>
		<?php
		}
		?>
        <tr class='clouds'>
            <th style="width: 20%; border:#000; text-align:center;">EFECTIVO $</th>
            <th style="width: 20%; border:#000; text-align:center;">EFECTIVO BS</th>
            <th style="width: 20%; border:#000; text-align: right;">COVERSION BS A $</th>
			<th style="width: 20%; border:#000; text-align: right;">TRANS/P. MOVIL</th>
            <th style="width: 20%; border:#000; text-align: right;">REF</th>
        </tr>
		<tr>
           	<td style="width: 20%; border:#000; text-align: left;"><?php echo $condiciones_efed;?></td>
    		<td style="width: 20%; border:#000; text-align: right;"><?php echo $condiciones_efe;?></td>
           	<td style="width: 20%; border:#000; text-align: right;">$.<?php echo $bolivar_a_dolarf;?></td>
        	<td style="width: 20%; border:#000; text-align: right;"><?php echo $condiciones_tra;?></td>
			<td style="width: 20%; border:#000; text-align: right;"><?php echo $ref;?></td>
        </tr>
		<tr>
           	<td colspan="2" style="width: 40%; border:#000; text-align: left;">MONTO PAGADO</td>
<td style="width:20%; border:#000; text-align: right;">$.<?php echo number_format($condiciones_efed+($condiciones_efe/$tasa_actual)+($condiciones_tra/$tasa_actual),2,",", ".");?></td>
          	<td style="width: 20%; border:#000; text-align: right;"></td>
            <td style="width: 20%; border:#000; text-align: right;"></td>
        </tr>
	</table>
	<br>
	<br>
	<br>
	<br>
	<br>
	<br>
	<table cellspacing="0" style="width: 100%; border:#000; text-align: left; font-size: 10pt;">
		 <tr class='clouds'>
            <th style="width: 25%; border:#000; text-align:center;">REALIZADO POR</th>
            <th style="width: 25%; border:#000; text-align:center;">DESPACHADO POR</th>
            <th style="width: 25%; border:#000; text-align: right;">RECIBIDO POR</th>
			<th style="width: 25%; border:#000; text-align: right;">SELLO</th>
            
        </tr>
	</table>
	<br>
	<br>
	<br>
	<br>
	<table style="width:50%;" align="center">
        <tr>
            <td style="width: 100%; color: #444444;">
            <img style="width: 100%;" src="../../img/enlacalle.png" alt="Logo">
            </td>
        </tr>
    </table>
</page>

<page backtop="10mm" backbottom="10mm" backleft="10mm" backright="10mm">
    <page_header>
        
               <img style="width: 100%;" src="../../img/logotiendas.png" alt="Logo">
        
    </page_header>
    <page_footer>
        <table style="width: 100%; border: solid 1px black;">
            <tr>
                <td style="text-align: left;    width: 50%">FONTUR ALMACEN</td>
                <td style="text-align: right;    width: 50%">page [[page_cu]]/[[page_nb]]</td>
            </tr>
        </table>
    </page_footer>
	<br>
	<br>
    <table style="width:100%;">
        <tr>
            <td style="width: 100%; color: #444444;">
            <img style="width: 100%;" src="../../img/cintillo-cedil.png" alt="Logo">
            </td>
        </tr>
    </table>
    <br>
	<br>
    <table cellspacing="0" style="width: 100%;">
    	<tr>
      		<td style="width: 40%; font-size:20px; text-align:center;"><strong>NOTA DE ENTREGA</strong></td>
	  		<td style="width: 30%; font-size:12px; text-align:center;"></td>
			<td style="width: 30%; font-size:12px; text-align:right;"><?php echo $tienda_factura;?></td>	
        </tr>
    </table>
    <br>
    
   	<?php 
  	$query2=mysqli_query($con, "select * from tasa where id_tasa='1'");
	while ($row2=mysqli_fetch_array($query2))
	{
		$id_tasa=$row2['id_tasa'];
		$tasa_actual=$row2['tasa'];
		$ult_act=$row2['fecha'];
	}
   	$sql_cliente=mysqli_query($con,"select * from clientes where id_cliente='$id_cliente'");
	$rw_cliente=mysqli_fetch_array($sql_cliente);
   	?> 
	<table cellspacing="0" style="width: 100%; text-align: left; font-size: 11pt;">
    	<tr>
            <td style="width:20%; border:#000;"><strong>CLIENTE</strong></td>
            <td style="width:50%; border:#000;"><?php echo $rw_cliente['nombre_cliente'];?></td>
		    <td style="width:15%; border:#000;"><strong>NUMERO</strong></td>
	    	<td style="width:15%; border:#000;"><?php echo $numero_factura;?></td>
		</tr>
   	</table>
   	<table cellspacing="0" style="width: 100%; text-align: left; font-size: 11pt;">     
		<tr>
    		<td style="width:20%; border:#000;"><strong>CEDULA / RIF</strong></td>
	   		<td style="width:50%; border:#000;"><?php echo $rw_cliente['rif_cliente'];?></td>
			<td style="width:15%; border:#000;"><strong>FECHA</strong></td>
	   		<td style="width:15%; border:#000;"><?php echo $fecha_factura;?></td>
		</tr>
    </table>
	<table cellspacing="0" style="width: 100%; text-align: left; font-size: 11pt;">     
		<tr>
    		<td style="width:20%; border:#000;"><strong>DOMICILIO</strong></td>
	   		<td style="width:50%; border:#000;"><?php echo $rw_cliente['direccion_cliente'];?></td>
			<td style="width:15%; border:#000;"><strong>GARANTIA</strong></td>
	   		<td style="width:15%; border:#000;"></td>
		</tr>
    </table>
	<table cellspacing="0" style="width: 100%; text-align: left; font-size: 11pt;">     
		<tr>
    		<td style="width:20%; border:#000;"><strong>CORREO</strong></td>
	   		<td style="width:50%; border:#000;"><?php echo $rw_cliente['email_cliente'];?></td>
			<td class='clouds' style="width:30%; border:#000;"><strong>TIPO/CONDICION</strong></td>
		</tr>
    </table>
	<table cellspacing="0" style="width: 100%; text-align: left; font-size: 11pt;">     
		<tr>
    		<td style="width:20%; border:#000;"><strong>TELEFONO</strong></td>
	   		<td style="width:50%; border:#000;"><?php echo $rw_cliente['telefono_cliente'];?></td>
			<td style="width:30%; border:#000;"><?php echo $rw_cliente['organizacion_cliente'];?></td>
		</tr>
    </table>
	<table cellspacing="0" style="width: 100%; text-align: left; font-size: 11pt;">     
		<tr>
    		<td style="width:20%; border:#000;"><strong>ENTE/LINEA</strong></td>
	   		<td style="width:50%; border:#000;"><?php echo $rw_cliente['contacto_cliente'];?></td>
			<td class='clouds' style="width:20%; border:#000;"><strong>TASA DE CAMBIO</strong></td>
	   		<td style="width:10%; border:#000;"><?php echo $tasa_actual;?>BsD</td>
		</tr>
    </table>
   
	<br>
  	<table cellspacing="0" style="width: 100%; border:#000; text-align: left; font-size: 10pt;">
        <tr class='clouds'>
            <th style="width: 5%; border:#000; text-align:center;">NRO</th>
            <th style="width: 50%; border:#000;">ARTICULO</th>
            <th style="width: 7%; border:#000; text-align: right;">CANT</th>
			<th style="width: 19%; border:#000; text-align: right;">PRECIO UNIT.</th>
            <th style="width: 19%; border:#000; text-align: right;">MONTO</th>
        </tr>

		<?php
		$bolivar_a_dolar=$condiciones_efe/$tasa;
		$bolivar_a_dolarf=number_format($bolivar_a_dolar,1,",", ".");
		$nums=1;
		$sumador_total=0;
		$sql=mysqli_query($con, "select * from products, detalle_factura, facturas where products.id_producto=detalle_factura.id_producto and detalle_factura.numero_factura=facturas.numero_factura and facturas.id_factura='".$id_factura."'");

		while ($row=mysqli_fetch_array($sql))
		{
			$id_producto=$row["id_producto"];
			$codigo_producto=$row['codigo_producto'];
			$cantidad=$row['cantidad'];
			$nombre_producto=$row['nombre_producto'];
	
			$precio_venta=$row['precio_venta'];
			$precio_venta_f=number_format($precio_venta,2);//Formateo variables
			$precio_venta_r=str_replace(",","",$precio_venta_f);//Reemplazo las comas
			$precio_total=$precio_venta_r*$cantidad;
			$precio_total_f=number_format($precio_total,2);//Precio total formateado
			$precio_total_r=str_replace(",","",$precio_total_f);//Reemplazo las comas
			$sumador_total+=$precio_total_r;//Sumador
	
			$dolar_a_bolivar=$precio_venta*$tasa;
			$dolar_a_bolivarf=number_format($dolar_a_bolivar,2,",", ".");
	
			$dolar_a_bolivar_sum=$sumador_total*$tasa;
			$dolar_a_bolivar_sumf=number_format($dolar_a_bolivar_sum,2,",", ".");

			$dolar_a_bolivar_mon=$precio_total*$tasa;
			$dolar_a_bolivar_monf=number_format($dolar_a_bolivar_mon,2,",", ".");
	
			?>
	       	<tr>
            	<td style="width: 5%; border:#000;  text-align: center;"><?php echo $nums; ?></td>
	            <td style="width: 50%; border:#000; text-align: left;"><?php echo $nombre_producto;?></td>
    	         <td style="width: 7%; border:#000; text-align: right;"><?php echo $cantidad;?></td>
            	<td style="width: 19%; border:#000; text-align: right;">BsD <?php echo $dolar_a_bolivarf;?></td>
        	    <td class='clouds' style="width: 19%; border:#000; text-align: right;">BsD <?php echo $dolar_a_bolivar_monf;?></td>
        	</tr>
			<?php 
			$nums++;
		}
		$subtotal=number_format($sumador_total,2,'.','');
		//$total_iva=($subtotal * TAX )/100;
		//$total_iva=number_format($total_iva,2,'.','');
		//$total_factura=$subtotal+$total_iva;
		$total_factura=$subtotal;
	
		$subtotalf=number_format($subtotal,2,",", ".");
		$dolar_a_bolivarsub=$subtotal*$tasa;
		$dolar_a_bolivarsubf=number_format($dolar_a_bolivarsub,2,",", ".");
		
		//$total_ivaf=number_format($total_iva,1,",", ".");
		//$dolar_a_bolivariva=$total_iva*$tasa_actual;
		//$dolar_a_bolivarivaf=number_format($dolar_a_bolivariva,1,",", ".");
		
		$total_facturaf=number_format($total_factura,2,",", ".");
		$dolar_a_bolivarfact=$total_factura*$tasa;
		$dolar_a_bolivarfactf=number_format($dolar_a_bolivarfact,2,",", ".");
		?>
	  	<tr>
        	<td style="widtd: 15%; text-align: right;"></td>
		    <td colspan="3" style="widtd: 81%; text-align: right;"><strong>SUBTOTAL </strong></td>
            <td class='clouds' style="widtd: 19%; text-align: right;">BsD <?php echo $dolar_a_bolivarsubf;?></td>
        </tr>
		<tr>
			<td style="widtd: 19%; text-align: right;"></td>
            <td colspan="3" style="widtd: 81%; text-align: right;"><strong>IVA (<?php //echo TAX; ?>0)% </strong></td>
            <td class='clouds' style="widtd: 19%; text-align: right;">BsD 0<?php //echo $dolar_a_bolivarivaf;?></td>
        </tr>
		<tr>
        	<td style="widtd: 19%; text-align: right;"></td>
            <td colspan="3" style="widtd: 81%; text-align: right;"><strong>TOTAL A PAGAR</strong></td>
            <td class='clouds' style="widtd: 19%; text-align: right;">BsD <?php echo $dolar_a_bolivarfactf;?></td>
        </tr>
		<tr>
        	<td style="widtd: 19%; text-align: right;"></td>
            <td colspan="3" style="widtd: 81%; text-align: right;"><strong>DIVISAS</strong></td>
            <td class='clouds' style="widtd: 19%; text-align: right;">$. <?php echo number_format($total_factura,2,",", ".");?></td>
        </tr>
    </table>
	
	<table cellspacing="0" style="width: 100%; border:#000; text-align: left; font-size: 10pt;">
		<tr class='clouds'>
			<th colspan="5" style="width: 100%; border:#000; text-align:center;">FORMA DE PAGO</th>
		</tr>
        <tr class='clouds'>
            <th style="width: 20%; border:#000; text-align:center;">EFECTIVO $</th>
            <th style="width: 20%; border:#000; text-align:center;">EFECTIVO BS</th>
            <th style="width: 20%; border:#000; text-align: right;">COVERSION BS A $</th>
			<th style="width: 20%; border:#000; text-align: right;">TRANS/P. MOVIL</th>
            <th style="width: 20%; border:#000; text-align: right;">REF</th>
        </tr>
		<tr>
           	<td style="width: 20%; border:#000; text-align: left;"><?php echo $condiciones_efed;?></td>
    		<td style="width: 20%; border:#000; text-align: right;"><?php echo $condiciones_efe;?></td>
           	<td style="width: 20%; border:#000; text-align: right;">$.<?php echo $bolivar_a_dolarf;?></td>
        	<td style="width: 20%; border:#000; text-align: right;"><?php echo $condiciones_tra;?></td>
			<td style="width: 20%; border:#000; text-align: right;"><?php echo $ref;?></td>
        </tr>
		<tr>
           	<td colspan="2" style="width: 40%; border:#000; text-align: left;">MONTO PAGADO</td>
<td style="width:20%; border:#000; text-align: right;">$.<?php echo number_format($condiciones_efed+($condiciones_efe/$tasa_actual)+($condiciones_tra/$tasa_actual),2,",", ".");?></td>
          	<td style="width: 20%; border:#000; text-align: right;"></td>
            <td style="width: 20%; border:#000; text-align: right;"></td>
        </tr>
	</table>
	<br>
	<br>
	<br>
	<br>
	<br>
	<br>
	<table cellspacing="0" style="width: 100%; border:#000; text-align: left; font-size: 10pt;">
		 <tr class='clouds'>
            <th style="width: 25%; border:#000; text-align:center;">REALIZADO POR</th>
            <th style="width: 25%; border:#000; text-align:center;">DESPACHADO POR</th>
            <th style="width: 25%; border:#000; text-align: right;">RECIBIDO POR</th>
			<th style="width: 25%; border:#000; text-align: right;">SELLO</th>
            
        </tr>
	</table>
	<br>
	<br>
	<br>
	<br>
	<table style="width:50%;" align="center">
        <tr>
            <td style="width: 100%; color: #444444;">
            <img style="width: 100%;" src="../../img/enlacalle.png" alt="Logo">
            </td>
        </tr>
    </table>
</page>
