autorizar-nota-pedido.html
3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<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>
<label class="checkbox">
<input
class="form-control-sm"
type="checkbox"
ng-model="notaPedido.checked">
<span class="checkmark"></span>
</label>
<button class="btn" 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">«</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">»</span>
<span class="sr-only">Siguiente</span>
</a>
</li>
</ul>
</nav>
</div>