<div id="verdetalle<?php echo $reg["aju_id"];?>" class="modal fade" tabindex="-1" role="dialog">
    <div class="modal-dialog  modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title">Detalle de Venta</h4>
            </div>
            <div class="modal-body">
                <div class="col-md-12">
                    <div class="table-responsive">
                        <table class="table table-bordered table-hover table-striped">
                            <tr>
                                <th>CODIGO</th>
                                <th>CANT.</th>
                                <th>DESCRIPCION</th>
                                <th><span class="pull-right">TIPO DEL AJUSTE</span></th>
                            </tr>
                            <?php
                                $aju_id=$reg['aju_id'];   
                                $sql1=mysqli_query($con,"SELECT * from ajuste_detalle where ajuste_inventario_aju_id='$aju_id'");
                                while ($row=mysqli_fetch_array($sql1))
                                {
                                    $id=$row["ajud_id"];
                                    $ajud_id=$row["ajud_id"];
                                    $ajud_referencia=$row['ajud_referencia'];
                                    $ajud_nombre=$row['ajud_nombre'];
                                    $ajud_cantidad=$row['ajud_cantidad'];
                                    $ajud_tipo=$row['ajud_tipo'];

                            ?>
                            <tr>
                                <td><?php echo $ajud_referencia;?></td>
                                <td><?php echo $ajud_cantidad;?></td>
                                <td><?php echo $ajud_nombre;?></td>
                                <td><span class="pull-right"><?php echo $ajud_tipo;?></span></td>
                            </tr>   
                            <?php } ?>
                        </table>
                    </div> <!-- /.responsive- -->
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
                    </div>
                </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
        </div> 
    </div>
</div>