<?php
include("../php/config.php");
$folio = $_GET["folio"];
$sql = mysql_query("select * from detalle_venta where folio='$folio' order by id_detalle desc") or die(mysqli_error($con))
?>
<div class="table-responsive border p-3 mt-2" style="border: gray 1px dotted">
<table class="table" style="width:100%">
	
		
		<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="" href="#modalDetalle" data-toggle="modal" onClick='ver(<?php echo $r["id_detalle"]?>)'><?php echo $r["codigo"]?></a></td>
                <td><a class="" style="font-size: 13px; color:black" href="#modalDetalle" data-toggle="modal" onClick='ver(<?php echo $r["id_detalle"]?>)'><span class="text-rojo"><i class='bi bi-stickies'></i> <?php echo $r["descripcion"]?></span></a></td>
				<td><input type="text" id="<?php echo $r['id_detalle']?>" value="<?php echo ($r['cantidad'])?>"  onBlur="setCant(this.id, this.value)" onKeyPress="eventoCant(event, this.id, this.value)" style="width:65px;"></td>
                <td><?php echo $r["precio"]?></td>
                <td><?php echo $r["total_precio"]?></td>
             
               <td><a class="" href="#modalDetalle" data-toggle="modal" onClick='ver(<?php echo $r["id_detalle"]?>)'><i class="bi bi-pencil-square"></i> Editar</a> </td>
			</tr>
         <?php }?>
	</tbody>
</table>
</div>
<?php

?>

      
</script>