Commit d5610fb1df33635a6ad0a960e5d3e174ef81a643
1 parent
28be27837d
Exists in
master
and in
1 other branch
clases invisibles
Showing
1 changed file
with
2 additions
and
4 deletions
Show diff stats
src/views/foca-modal-factura.html
1 | <div class="modal-header py-1"> | 1 | <div class="modal-header py-1"> |
2 | <div class="row w-100"> | 2 | <div class="row w-100"> |
3 | <div class="col-lg-6"> | 3 | <div class="col-lg-6"> |
4 | <h5 class="modal-title">Búsqueda de Comprobantes</h5> | 4 | <h5 class="modal-title">Búsqueda de Comprobantes</h5> |
5 | </div> | 5 | </div> |
6 | </div> | 6 | </div> |
7 | </div> | 7 | </div> |
8 | <div class="modal-body" id="modal-body"> | 8 | <div class="modal-body" id="modal-body"> |
9 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> | 9 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> |
10 | <thead> | 10 | <thead> |
11 | <tr> | 11 | <tr> |
12 | <th>Comprobante</th> | 12 | <th>Comprobante</th> |
13 | <th>Vencimiento</th> | 13 | <th>Vencimiento</th> |
14 | <th class="text-right">Importe</th> | 14 | <th class="text-right">Importe</th> |
15 | <th class="text-right">Saldo</th> | 15 | <th class="text-right">Saldo</th> |
16 | <th class="text-right"></th> | 16 | <th class="text-right"></th> |
17 | </tr> | 17 | </tr> |
18 | </thead> | 18 | </thead> |
19 | <tbody> | 19 | <tbody> |
20 | <tr ng-show="currentPageFacturas.length == 0 && primerBusqueda"> | 20 | <tr ng-show="currentPageFacturas.length == 0 && primerBusqueda"> |
21 | <td colspan="5"> | 21 | <td colspan="5"> |
22 | No se encontraron resultados. | 22 | No se encontraron resultados. |
23 | </td> | 23 | </td> |
24 | </tr> | 24 | </tr> |
25 | <tr class="selectable" | 25 | <tr class="selectable" |
26 | ng-repeat="(key,factura) in currentPageFacturas" | 26 | ng-repeat="(key,factura) in currentPageFacturas" |
27 | ng-click="factura.checked = !factura.checked"> | 27 | ng-click="factura.checked = !factura.checked"> |
28 | <td>{{factura.numeroFactura}} {{factura.FECHA_COMPROBANTE | date : 'dd/MM/yyyy' : 'GMT'}}</td> | 28 | <td>{{factura.numeroFactura}} {{factura.FECHA_COMPROBANTE | date : 'dd/MM/yyyy' : 'GMT'}}</td> |
29 | <td>{{(factura.TCO == 'FT') ? factura.NCU + ' - ' : ''}}{{factura.FEV | date : 'dd/MM/yyyy' : 'GMT'}}</td> | 29 | <td>{{(factura.TCO == 'FT') ? factura.NCU + ' - ' : ''}}{{factura.FEV | date : 'dd/MM/yyyy' : 'GMT'}}</td> |
30 | <td class="text-right"> | 30 | <td class="text-right"> |
31 | {{ (factura.IPA_SHOW / parametrosFactura.cotizacion) | number:2 }} | 31 | {{ (factura.IPA_SHOW / parametrosFactura.cotizacion) | number:2 }} |
32 | <span ng-if="factura.IPA < 0"> - </span> | 32 | <span ng-class="{{'invisible': factura.IPA >= 0}}">-</span> |
33 | <span ng-if="factura.IPA > 0" style="color: rgba(0,0,0,0);"> + </span> | ||
34 | </td> | 33 | </td> |
35 | <td class="text-right"> | 34 | <td class="text-right"> |
36 | {{ factura.saldo_show | number:2 }} | 35 | {{ factura.saldo_show | number:2 }} |
37 | <span ng-if="factura.saldo < 0"> - </span> | 36 | <span ng-class="{{'invisible': factura.saldo >= 0}}">-</span> |
38 | <span ng-if="factura.saldo > 0" style="color: rgba(0,0,0,0);"> + </span> | ||
39 | </td> | 37 | </td> |
40 | <td class="text-right"> | 38 | <td class="text-right"> |
41 | <input | 39 | <input |
42 | ng-class="{ | 40 | ng-class="{ |
43 | 'btn-secondary': selectedFactura != key, | 41 | 'btn-secondary': selectedFactura != key, |
44 | 'btn-primary': selectedFactura == key}" | 42 | 'btn-primary': selectedFactura == key}" |
45 | ng-keydown="itemFactura($event.keyCode)" | 43 | ng-keydown="itemFactura($event.keyCode)" |
46 | foca-focus="selectedFactura == {{key}}" | 44 | foca-focus="selectedFactura == {{key}}" |
47 | type="checkbox" | 45 | type="checkbox" |
48 | ng-model="factura.checked" | 46 | ng-model="factura.checked" |
49 | /> | 47 | /> |
50 | </td> | 48 | </td> |
51 | </tr> | 49 | </tr> |
52 | </tbody> | 50 | </tbody> |
53 | </table> | 51 | </table> |
54 | </div> | 52 | </div> |
55 | <div class="modal-footer py-1"> | 53 | <div class="modal-footer py-1"> |
56 | <nav ng-show="currentPageFacturas.length > 0 && primerBusqueda" class="mr-auto"> | 54 | <nav ng-show="currentPageFacturas.length > 0 && primerBusqueda" class="mr-auto"> |
57 | <ul class="pagination pagination-sm justify-content mb-0"> | 55 | <ul class="pagination pagination-sm justify-content mb-0"> |
58 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 56 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> |
59 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)"> | 57 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)"> |
60 | <span aria-hidden="true">«</span> | 58 | <span aria-hidden="true">«</span> |
61 | <span class="sr-only">Anterior</span> | 59 | <span class="sr-only">Anterior</span> |
62 | </a> | 60 | </a> |
63 | </li> | 61 | </li> |
64 | <li | 62 | <li |
65 | class="page-item" | 63 | class="page-item" |
66 | ng-repeat="pagina in paginas" | 64 | ng-repeat="pagina in paginas" |
67 | ng-class="{'active': pagina == currentPage}" | 65 | ng-class="{'active': pagina == currentPage}" |
68 | > | 66 | > |
69 | <a | 67 | <a |
70 | class="page-link" | 68 | class="page-link" |
71 | href="javascript:void();" | 69 | href="javascript:void();" |
72 | ng-click="selectPage(pagina)" | 70 | ng-click="selectPage(pagina)" |
73 | ng-bind="pagina" | 71 | ng-bind="pagina" |
74 | ></a> | 72 | ></a> |
75 | </li> | 73 | </li> |
76 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 74 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> |
77 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)"> | 75 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)"> |
78 | <span aria-hidden="true">»</span> | 76 | <span aria-hidden="true">»</span> |
79 | <span class="sr-only">Siguiente</span> | 77 | <span class="sr-only">Siguiente</span> |
80 | </a> | 78 | </a> |
81 | </li> | 79 | </li> |
82 | </ul> | 80 | </ul> |
83 | </nav> | 81 | </nav> |
84 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | 82 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> |
85 | <button | 83 | <button |
86 | class="btn btn-sm btn-primary" | 84 | class="btn btn-sm btn-primary" |
87 | type="button" | 85 | type="button" |
88 | ng-click="aceptar()" | 86 | ng-click="aceptar()" |
89 | ng-disabled="tieneAlMenosUno()" | 87 | ng-disabled="tieneAlMenosUno()" |
90 | >Aceptar</button> | 88 | >Aceptar</button> |
91 | </div> | 89 | </div> |
92 | 90 |