<?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="row">


							<div class="col-lg-4 col-sm-4 col-4"> 
								<div class="input-group">
									<h5 for="">Ope.: </h5> 
									<input name="" type="text"class="form-control form-control-sm"  style="text-align:right;font-weight: bold;color:#F93154;" readonly value="<?php echo formato_money($total_valorventa)?>"  >
																
								</div>	
							</div>

							<div class="col-lg-4 col-sm-4 col-4"> 
								<div class="input-group">
									<h5 for="">Igv: </h5> 
									<input name="" type="text" class="form-control form-control-sm"  style="text-align:right;font-weight: bold;color:#F93154;" readonly value="<?php echo formato_money($total_igv)?>"   > 
																
								</div>	
							</div>

							<div class="col-lg-4 col-sm-4 col-4"> 
								<div class="input-group">
									<h5 for="">Total: </h5>
									<input name="" type="text" class="form-control form-control-sm"  style="text-align:right;font-weight: bold;color:#F93154;font-size:15pt;" readonly value="<?php echo formato_money($total)?>" >
																
								</div>	
							</div>

							
							</div>
							
						