Commit 417298f92e348eeb32f9deaacbfcc491d14fbb41
1 parent
7f4b518559
Exists in
master
timezone en filtro date
Showing
1 changed file
with
2 additions
and
2 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.FEP | date : 'dd/MM/yyyy'}}</td> | 28 | <td>{{factura.numeroFactura}} {{factura.FEP | date : 'dd/MM/yyyy' : 'GMT'}}</td> |
| 29 | <td>{{(factura.TCO == 'FT') ? factura.NCU + ' - ' : ''}}{{factura.FEV | date : 'dd/MM/yyyy'}}</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 | <span ng-if="factura.IPA >= 0">+</span>{{(factura.IPA / parametrosFactura.cotizacion) | number:2}} | 31 | <span ng-if="factura.IPA >= 0">+</span>{{(factura.IPA / parametrosFactura.cotizacion) | number:2}} |
| 32 | </td> | 32 | </td> |
| 33 | <td class="text-right"> | 33 | <td class="text-right"> |
| 34 | <span ng-if="factura.saldo >= 0">+</span>{{factura.saldo | number:2}} | 34 | <span ng-if="factura.saldo >= 0">+</span>{{factura.saldo | number:2}} |
| 35 | </td> | 35 | </td> |
| 36 | <td class="text-right"> | 36 | <td class="text-right"> |
| 37 | <input | 37 | <input |
| 38 | ng-class="{ | 38 | ng-class="{ |
| 39 | 'btn-secondary': selectedFactura != key, | 39 | 'btn-secondary': selectedFactura != key, |
| 40 | 'btn-primary': selectedFactura == key}" | 40 | 'btn-primary': selectedFactura == key}" |
| 41 | ng-keydown="itemFactura($event.keyCode)" | 41 | ng-keydown="itemFactura($event.keyCode)" |
| 42 | foca-focus="selectedFactura == {{key}}" | 42 | foca-focus="selectedFactura == {{key}}" |
| 43 | type="checkbox" | 43 | type="checkbox" |
| 44 | ng-model="factura.checked" | 44 | ng-model="factura.checked" |
| 45 | /> | 45 | /> |
| 46 | </td> | 46 | </td> |
| 47 | </tr> | 47 | </tr> |
| 48 | </tbody> | 48 | </tbody> |
| 49 | </table> | 49 | </table> |
| 50 | </div> | 50 | </div> |
| 51 | <div class="modal-footer py-1"> | 51 | <div class="modal-footer py-1"> |
| 52 | <nav ng-show="currentPageFacturas.length > 0 && primerBusqueda" class="mr-auto"> | 52 | <nav ng-show="currentPageFacturas.length > 0 && primerBusqueda" class="mr-auto"> |
| 53 | <ul class="pagination pagination-sm justify-content mb-0"> | 53 | <ul class="pagination pagination-sm justify-content mb-0"> |
| 54 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 54 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> |
| 55 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)"> | 55 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)"> |
| 56 | <span aria-hidden="true">«</span> | 56 | <span aria-hidden="true">«</span> |
| 57 | <span class="sr-only">Anterior</span> | 57 | <span class="sr-only">Anterior</span> |
| 58 | </a> | 58 | </a> |
| 59 | </li> | 59 | </li> |
| 60 | <li | 60 | <li |
| 61 | class="page-item" | 61 | class="page-item" |
| 62 | ng-repeat="pagina in paginas" | 62 | ng-repeat="pagina in paginas" |
| 63 | ng-class="{'active': pagina == currentPage}" | 63 | ng-class="{'active': pagina == currentPage}" |
| 64 | > | 64 | > |
| 65 | <a | 65 | <a |
| 66 | class="page-link" | 66 | class="page-link" |
| 67 | href="javascript:void();" | 67 | href="javascript:void();" |
| 68 | ng-click="selectPage(pagina)" | 68 | ng-click="selectPage(pagina)" |
| 69 | ng-bind="pagina" | 69 | ng-bind="pagina" |
| 70 | ></a> | 70 | ></a> |
| 71 | </li> | 71 | </li> |
| 72 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 72 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> |
| 73 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)"> | 73 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)"> |
| 74 | <span aria-hidden="true">»</span> | 74 | <span aria-hidden="true">»</span> |
| 75 | <span class="sr-only">Siguiente</span> | 75 | <span class="sr-only">Siguiente</span> |
| 76 | </a> | 76 | </a> |
| 77 | </li> | 77 | </li> |
| 78 | </ul> | 78 | </ul> |
| 79 | </nav> | 79 | </nav> |
| 80 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | 80 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> |
| 81 | <button | 81 | <button |
| 82 | class="btn btn-sm btn-primary" | 82 | class="btn btn-sm btn-primary" |
| 83 | type="button" | 83 | type="button" |
| 84 | ng-click="aceptar()" | 84 | ng-click="aceptar()" |
| 85 | ng-disabled="tieneAlMenosUno()" | 85 | ng-disabled="tieneAlMenosUno()" |
| 86 | >Aceptar</button> | 86 | >Aceptar</button> |
| 87 | </div> | 87 | </div> |
| 88 | 88 |