<?php
//ini_set('display_errors',1);

session_start();
require_once ("../../config/Cado.php");
require_once ("../formatos/formato.php");




//echo '--'.$_POST['vista'];

if($_POST['vista']=='venta_form'){
	
	foreach($_SESSION['venta_catid'] as $indice=>$cantidad) {
		$precio_uni=$_SESSION['venta_preven'][$indice];
		$can=$_SESSION['venta_can'][$indice];		
		$precio_uni = $precio_uni * $can;
		
		// echo $precio_uni.'--';
		
		$total += $precio_uni;	
	}
	
			$total_valorventa =$total/1.18;
			$total_igv	=$total_valorventa * 0.18;
}


?>
 
				 					

		<div class="col-lg-12 col-xs-12" style="border: 1px solid #1266F1;padding:2px;" >
							
							
							<div class="row">

							<div class="col-lg-2 col-xs-3">
								<label style="padding-top:10px;">SUBTOTAL:</label>
							</div>
							<div class="col-lg-2 col-xs-3">
								<input name="" type="text"class="form-control"  style="text-align:right;font-weight: bold;color:#F93154;" readonly value="<?php echo formato_money($total_valorventa)?>"  > 					
							</div>
						
							<div class="col-lg-2 col-xs-3">
								<label style="padding-top:10px;" >IGV:</label>
							</div>
								
							<div class="col-lg-2 col-xs-3">
								<input name="" type="text" class="form-control"  style="text-align:right;font-weight: bold;color:#F93154;" readonly value="<?php echo formato_money($total_igv)?>"   > 
							</div>
							
							<div class="col-lg-2 col-xs-3">
								<label style="padding-top:2px;font-size:15pt;font-weight:bold" >TOTAL:</label>
							</div>
							
							<div class="col-lg-2 col-xs-3">
								<input name="" type="text" class="form-control"  style="text-align:right;font-weight: bold;color:#F93154;font-size:15pt;" readonly value="<?php echo formato_money($total)?>" > 
							</div>
							
							</div>
							
							
							
							
							
							
							
							
							
							
							
							
							
		</div>

