<div class="modal fade" id="modalEditarPedido" tabindex="-1" role="dialog">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title">Editar Pedido</h5>
                <button type="button" class="close" data-dismiss="modal">&times;</button>
            </div>
            <form id="formEditarPedido">
                <div class="modal-body">
                    <input type="hidden" id="id_venta" name="id_venta">
                    <div class="form-group">
                        <label>Cliente:</label>
                        <input type="text" id="cliente" name="cliente" class="form-control">
                    </div>
                    <div class="form-group">
                        <label>Método de Pago:</label>
                        <input type="text" id="metodo" name="metodo" class="form-control">
                    </div>
                    <table class="table">
                        <thead>
                            <tr>
                                <th>Producto</th>
                                <th>Cantidad</th>
                                <th>Precio</th>
                                <th>Presentación</th>
                            </tr>
                        </thead>
                        <tbody id="detalle_venta"></tbody>
                    </table>
                    <div class="form-group">
                        <label>Total:</label>
                        <input type="text" id="total" name="total" class="form-control" readonly>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="submit" class="btn btn-primary">Guardar Cambios</button>
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">Cerrar</button>
                </div>
            </form>
        </div>
    </div>
</div>