
<?php
include_once '../php/config.php';
?>
<table class="table table-hover table-striped tabla_comanda2">
								<tr><th>ITEM</th><th>CANTIDAD</th><th>TOTAL</th></tr>
								<?php 
								$sql_detalle_pedido = mysql_query("select * from detalle_comanda where mesa='".$_GET['txt-mesa']."' and anulado!=1 order by id_detalle_comanda desc") or die(mysql_error());
								while($r004 = mysql_fetch_array($sql_detalle_pedido)){
								$sub_pedido2+=$r004["total_precio"];
								$sub_costo+=$r004["total_costo"];
								$id = $r004["id_detalle_comanda"];
								?>
								<tr>
									<td><?php echo $r004["descripcion"]?>
									<br>
									<?php if($_COOKIE['nivel']=='Master'){?><a class="text-warning ml-2" href='#' onClick='del_item2(<?php echo $id?>)'><i class="fa fa-trash"></i> <b>BORRAR</b></a><?php }?>
									</td>
									
									<td><input style="width:60px;" class="" type="number" id="<?php echo $id?>" value="<?php echo $r004["cantidad"]?>" readonly>
									<a style="font-size:30px; font-weight:bolder;"  class="btn btn-default" href='#' onClick='mas(<?php echo $id?>)'> + </a>
									<a style="font-size:30px; font-weight:bolder;"  class="btn btn-default" href='#' onClick='menos(<?php echo $id?>)'> - </a>
									
	
								</td>
									<td><?php echo $r004["total_precio"]?></td>
								</tr>
								<?php }?>
								
							<tfoot>
							<th><input type="hidden" name="txt_total_comanda2" id="txt_total_comanda2" value="<?php echo $sub_pedido2?>">
							<input type="hidden" name="txt_total_costo" id="txt_total_costo" value="<?php echo $sub_costo?>"></th>
</table>