<!-- Modal -->
<div id="modalUltimasVentas" class='modal fade' data-backdrop="static" data-keyboard="false" role="dialog"
    aria-labelledby="myModalLabel">
    <div class="modal-dialog modal-lg" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h3 id="myModalLabel">
                    <?php echo $_translator->_getTranslation('Ventas de hoy'); ?>
                    <spam id="lblventasDelDia"></spam>
                </h3>


                <input type="text" class="hide" id="new_formaPago">
            </div>
            <div id="flashmessenger-ultimasVentas" style="height: 40px"></div>
            <div class="modal-body">
                <div class='col-lg-12 col-md-12 col-sm-12'>
                    <table id="tblLastVentas" class="table table-condensed table-striped table-hover table-scroll"
                        style="height: 50vh">
                        <thead>
                            <th class='text-center' style='width:10%'>
                                <?php echo $_translator->_getTranslation('Venta') ?>
                            </th>
                            <th class='text-right' style='width:15%'>
                                <?php echo $_translator->_getTranslation('Monto') ?>
                            </th>
                            <th class='text-center' style='width:15%'>
                                <?php echo $_translator->_getTranslation('Status') ?>
                            </th>
                            <th class='text-center' style='width:35%'>
                                <?php echo $_translator->_getTranslation('Metodo de pago') ?>
                            </th>
                            <th class='text-right' style='width:25%'>
                                <?php echo $_translator->_getTranslation('Accion') ?>
                            </th>
                        </thead>
                        <tbody></tbody>
                    </table>                    
                </div>
                <div class='clear'></div>
            </div>
            <div class="modal-footer">
                <div class='col-lg-3 col-md-3 col-sm-12 pull-right'>
                    <input type="button" class='btn btn-default pull-right setCursor' data-dismiss='modal'
                        aria-hidden='true' value="<?php echo $_translator->_getTranslation('Cerrar'); ?>" />
                </div>
            </div>
        </div>
    </div>
    <script>
        $('#tblLastVentas').on('click', "tbody tr td a.deleteVenta", function () {
            var idventa = $(this).data('idventa');
            confirmarAccion('cancelar_venta', function () { cancelVenta(idventa); });
        });

        $('#tblLastVentas').on('click', "tbody tr td a.re_email", function () {
            var idventa = $(this).data('idventa');
            mailingTicketVenta(idventa);
        });
    </script>
</div>

