autorizar-nota-pedido.html 3.1 KB
<div class="row">
    <foca-cabecera-facturador 
    titulo="'Autorizar Nota'"
    fecha="now"
    class="mb-0 col-lg-12"
    ></foca-cabecera-facturador>
</div>
<table class="table tabla-autorizar-nota-pedido table-striped table-sm col-10">
    <thead>
        <tr>
            <th>Nota de pedido</th>
            <th>Cliente</th>
            <th>Vendedor</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        <tr ng-repeat="notaPedido in notasPedido">
            <td ng-bind="[notaPedido.sucursal, notaPedido.numeroNotaPedido] | comprobante"></td>
            <td ng-bind="notaPedido.nombreCliente"></td>
            <td ng-bind="notaPedido.vendedor.NOM"></td>
            <td>
                <input
                    class="form-control-sm"
                    type="checkbox"
                    ng-model="notaPedido.checked">

                <button class="btn mb-4" type="button" ng-click="verNotaPedido()">
                    <i class="fa fa-eye"></i>
                </button>
            </td>
        </tr>
    </tbody>
    <tfoot>
        <tr>
            <th colspan="2">
                <button
                    class="btn btn-primary" ng-click="autorizar()">Autorizar({{getSeleccionados()}})</button>
            </th>
            <th>Seleccionar todo</th>
            <th>
                <input
                    class="form-control-sm"
                    type="checkbox"
                    ng-model="checkedAll"
                    ng-click="seleccionarTodo()">
            </th>
        </tr>
    </tfoot>
</table>
<div>
    <nav ng-show="notasPedido.length > 0" class="mr-auto paginador-abm">
            <ul class="pagination pagination-sm mb-0">
                <li class="page-item" ng-class="{'disabled': currentPage == 1}">
                    <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage - 1)">
                        <span aria-hidden="true">&laquo;</span>
                        <span class="sr-only">Anterior</span>
                    </a>
                </li>
                <!-- TODO QUITAR HARDCODEO -->
                <li
                    class="page-item active">
                    <a
                        class="page-link"
                        href="javascript:void()">1</a>
                </li>
                <li
                    class="page-item"
                    ng-repeat="pagina in paginas"
                    ng-class="{'active': pagina == currentPage}"
                >
                    <a
                        class="page-link"
                        href="javascript:void()"
                        ng-click="selectPage(pagina)"
                        ng-bind="pagina"
                    ></a>
                </li>
                <li class="page-item" ng-class="{'disabled': currentPage == lastPage}">
                    <a class="page-link" href="javascript:void()" ng-click="selectPage(currentPage + 1)">
                        <span aria-hidden="true">&raquo;</span>
                        <span class="sr-only">Siguiente</span>
                    </a>
                </li>
            </ul>
        </nav>
</div>