Commit dab5639e5d2f54c635a7e2802ce3c2eeafc62921
1 parent
3f1c6c9647
Exists in
master
and in
1 other branch
agrego ladda
Showing
1 changed file
with
5 additions
and
1 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 ladda-w-100" | 
| 9 | id="modal-body" | ||
| 10 | ladda="!primerBusqueda" | ||
| 11 | data-spinner-color="#000000" | ||
| 12 | data-spinner-size="30"> | ||
| 9 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> | 13 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> | 
| 10 | <thead> | 14 | <thead> | 
| 11 | <tr> | 15 | <tr> | 
| 12 | <th>Comprobante</th> | 16 | <th>Comprobante</th> | 
| 13 | <th>Vencimiento</th> | 17 | <th>Vencimiento</th> | 
| 14 | <th class="text-right">Importe</th> | 18 | <th class="text-right">Importe</th> | 
| 15 | <th class="text-right">Saldo</th> | 19 | <th class="text-right">Saldo</th> | 
| 16 | <th class="text-right"></th> | 20 | <th class="text-right"></th> | 
| 17 | <th class="text-right"></th> | 21 | <th class="text-right"></th> | 
| 18 | <th class="text-right"></th> | 22 | <th class="text-right"></th> | 
| 19 | </tr> | 23 | </tr> | 
| 20 | </thead> | 24 | </thead> | 
| 21 | <tbody> | 25 | <tbody> | 
| 22 | <tr ng-show="currentPageFacturas.length == 0 && primerBusqueda"> | 26 | <tr ng-show="currentPageFacturas.length == 0 && primerBusqueda"> | 
| 23 | <td colspan="5"> | 27 | <td colspan="5"> | 
| 24 | No se encontraron resultados. | 28 | No se encontraron resultados. | 
| 25 | </td> | 29 | </td> | 
| 26 | </tr> | 30 | </tr> | 
| 27 | <tr class="selectable" | 31 | <tr class="selectable" | 
| 28 | ng-repeat="(key, factura) in currentPageFacturas"> | 32 | ng-repeat="(key, factura) in currentPageFacturas"> | 
| 29 | <td ng-click="factura.checked = !factura.checked">{{factura.numeroFactura}} {{factura.FECHA_COMPROBANTE | date : 'dd/MM/yyyy' : 'GMT'}}</td> | 33 | <td ng-click="factura.checked = !factura.checked">{{factura.numeroFactura}} {{factura.FECHA_COMPROBANTE | date : 'dd/MM/yyyy' : 'GMT'}}</td> | 
| 30 | <td ng-click="factura.checked = !factura.checked">{{(factura.TCO == 'FT') ? factura.NCU + ' - ' : ''}}{{factura.FEV | date : 'dd/MM/yyyy' : 'GMT'}}</td> | 34 | <td ng-click="factura.checked = !factura.checked">{{(factura.TCO == 'FT') ? factura.NCU + ' - ' : ''}}{{factura.FEV | date : 'dd/MM/yyyy' : 'GMT'}}</td> | 
| 31 | <td class="text-right" | 35 | <td class="text-right" | 
| 32 | ng-click="factura.checked = !factura.checked"> | 36 | ng-click="factura.checked = !factura.checked"> | 
| 33 | {{ (factura.IPA_SHOW / parametrosFactura.cotizacion) | number:2 }} | 37 | {{ (factura.IPA_SHOW / parametrosFactura.cotizacion) | number:2 }} | 
| 34 | <span ng-class="{'invisible': factura.IPA >= 0}">-</span> | 38 | <span ng-class="{'invisible': factura.IPA >= 0}">-</span> | 
| 35 | </td> | 39 | </td> | 
| 36 | <td class="text-right" | 40 | <td class="text-right" | 
| 37 | ng-click="factura.checked = !factura.checked"> | 41 | ng-click="factura.checked = !factura.checked"> | 
| 38 | {{ factura.saldo_show | number:2 }} | 42 | {{ factura.saldo_show | number:2 }} | 
| 39 | <span ng-class="{'invisible': factura.saldo >= 0}">-</span> | 43 | <span ng-class="{'invisible': factura.saldo >= 0}">-</span> | 
| 40 | </td> | 44 | </td> | 
| 41 | <td class="text-right"> | 45 | <td class="text-right"> | 
| 42 | <input | 46 | <input | 
| 43 | ng-class="{ | 47 | ng-class="{ | 
| 44 | 'btn-secondary': selectedFactura != key, | 48 | 'btn-secondary': selectedFactura != key, | 
| 45 | 'btn-primary': selectedFactura == key}" | 49 | 'btn-primary': selectedFactura == key}" | 
| 46 | ng-keydown="itemFactura($event.keyCode)" | 50 | ng-keydown="itemFactura($event.keyCode)" | 
| 47 | foca-focus="selectedFactura == {{key}}" | 51 | foca-focus="selectedFactura == {{key}}" | 
| 48 | type="checkbox" | 52 | type="checkbox" | 
| 49 | ng-model="factura.checked" | 53 | ng-model="factura.checked" | 
| 50 | /> | 54 | /> | 
| 51 | </td> | 55 | </td> | 
| 52 | <td> | 56 | <td> | 
| 53 | <button | 57 | <button | 
| 54 | class="btn p-1" | 58 | class="btn p-1" | 
| 55 | ng-click="verFactura(factura)" | 59 | ng-click="verFactura(factura)" | 
| 56 | title="Ver comprobante" | 60 | title="Ver comprobante" | 
| 57 | > | 61 | > | 
| 58 | <i class="fa fa-eye" aria-hidden="true"></i> | 62 | <i class="fa fa-eye" aria-hidden="true"></i> | 
| 59 | </button> | 63 | </button> | 
| 60 | </td> | 64 | </td> | 
| 61 | <td> | 65 | <td> | 
| 62 | <button | 66 | <button | 
| 63 | class="btn p-1" | 67 | class="btn p-1" | 
| 64 | ng-click="enviarMail(factura)" | 68 | ng-click="enviarMail(factura)" | 
| 65 | title="Enviar comprobante por mail" | 69 | title="Enviar comprobante por mail" | 
| 66 | > | 70 | > | 
| 67 | <i class="fa fa-envelope-o" aria-hidden="true"></i> | 71 | <i class="fa fa-envelope-o" aria-hidden="true"></i> | 
| 68 | </button> | 72 | </button> | 
| 69 | </td> | 73 | </td> | 
| 70 | </tr> | 74 | </tr> | 
| 71 | </tbody> | 75 | </tbody> | 
| 72 | </table> | 76 | </table> | 
| 73 | </div> | 77 | </div> | 
| 74 | <div class="modal-footer py-1"> | 78 | <div class="modal-footer py-1"> | 
| 75 | <nav ng-show="currentPageFacturas.length > 0 && primerBusqueda" class="mr-auto"> | 79 | <nav ng-show="currentPageFacturas.length > 0 && primerBusqueda" class="mr-auto"> | 
| 76 | <ul class="pagination pagination-sm justify-content mb-0"> | 80 | <ul class="pagination pagination-sm justify-content mb-0"> | 
| 77 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 81 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 
| 78 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)"> | 82 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)"> | 
| 79 | <span aria-hidden="true">«</span> | 83 | <span aria-hidden="true">«</span> | 
| 80 | <span class="sr-only">Anterior</span> | 84 | <span class="sr-only">Anterior</span> | 
| 81 | </a> | 85 | </a> | 
| 82 | </li> | 86 | </li> | 
| 83 | <li | 87 | <li | 
| 84 | class="page-item" | 88 | class="page-item" | 
| 85 | ng-repeat="pagina in paginas" | 89 | ng-repeat="pagina in paginas" | 
| 86 | ng-class="{'active': pagina == currentPage}" | 90 | ng-class="{'active': pagina == currentPage}" | 
| 87 | > | 91 | > | 
| 88 | <a | 92 | <a | 
| 89 | class="page-link" | 93 | class="page-link" | 
| 90 | href="javascript:void();" | 94 | href="javascript:void();" | 
| 91 | ng-click="selectPage(pagina)" | 95 | ng-click="selectPage(pagina)" | 
| 92 | ng-bind="pagina" | 96 | ng-bind="pagina" | 
| 93 | ></a> | 97 | ></a> | 
| 94 | </li> | 98 | </li> | 
| 95 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 99 | <li class="page-item" ng-class="{'disabled': currentPage == lastPage}"> | 
| 96 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)"> | 100 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage + 1)"> | 
| 97 | <span aria-hidden="true">»</span> | 101 | <span aria-hidden="true">»</span> | 
| 98 | <span class="sr-only">Siguiente</span> | 102 | <span class="sr-only">Siguiente</span> | 
| 99 | </a> | 103 | </a> | 
| 100 | </li> | 104 | </li> | 
| 101 | </ul> | 105 | </ul> | 
| 102 | </nav> | 106 | </nav> | 
| 103 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | 107 | <button class="btn btn-sm btn-secondary" type="button" ng-click="cancel()">Cancelar</button> | 
| 104 | <button | 108 | <button | 
| 105 | class="btn btn-sm btn-primary" | 109 | class="btn btn-sm btn-primary" | 
| 106 | type="button" | 110 | type="button" | 
| 107 | ng-click="aceptar()" | 111 | ng-click="aceptar()" | 
| 108 | ng-disabled="tieneAlMenosUno()" | 112 | ng-disabled="tieneAlMenosUno()" | 
| 109 | >Aceptar</button> | 113 | >Aceptar</button> | 
| 110 | </div> | 114 | </div> | 
| 111 | 115 |