<?php
include("../php/config.php");
$folio = $_GET["folio"];
$sql = mysql_query("select * from detalle_venta where folio='$folio'") or die(mysqli_error($con))
?>
<br><br>
<div class="table-responsive border p-3 mt-2">
<table class="table table-hover table-stripped" >
	
		
		<th>Codigo</th>
		<th>Descripcion</th>
		             
		<th>Cantidad</th>
		<th>Precio venta</th>
		<th>Total</th>
		<th>Editar</th>
	
<tbody>
<?php while($r=mysql_fetch_array($sql)){?>
			<tr>
			<td><a class=""  onClick='modalDetalle(<?php echo $r["id_detalle"]?>)'><?php echo $r["codigo"]?></a></td>
                <td><a href="javascript:void(0)" class="" onClick='modalDetalle(<?php echo $r["id_detalle"]?>)'><?php echo $r["descripcion"]?></a></td>
				<td><?php echo decimal($r["cantidad"])?></td>
                <td><?php echo $r["precio"]?></td>
                <td><?php echo $r["total_precio"]?></td>
             
               <td><a class="btn btn-success" onClick='modalDetalle(<?php echo $r["id_detalle"]?>)'><i class="fa fa-edit"></i> Cant. Precio</a></td>
			</tr>
         <?php }?>
	</tbody>
</table>
</div>
<?php

?>

      
</script>