Commit e1ab6a3008d50e461800093c79fa6c42b3d77f08
Exists in
master
Merge remote-tracking branch 'origin/master'
Showing
1 changed file
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"> | ||
4 | <h5 class="modal-title">Búsqueda de Facturas</h5> | ||
5 | </div> | ||
6 | <div class="input-group col-lg-6 pr-0 my-2"> | ||
7 | <input | ||
8 | ladda="searchLoading" | ||
9 | type="text" | ||
10 | class="form-control form-control-sm" | ||
11 | placeholder="Búsqueda" | ||
12 | ng-model="filters" | ||
13 | ng-change="search()" | ||
14 | ng-keydown="busquedaDown($event.keyCode)" | ||
15 | ng-keypress="busquedaPress($event.keyCode)" | ||
16 | foca-focus="selectedFactura == -1" | ||
17 | ng-focus="selectedFactura = -1" | ||
18 | teclado-virtual | ||
19 | /> | ||
20 | <div class="input-group-append"> | ||
21 | <button | ||
22 | ladda="searchLoading" | ||
23 | class="btn btn-outline-secondary" | ||
24 | type="button" | ||
25 | ng-click="busquedaPress(13)" | ||
26 | > | ||
27 | <i class="fa fa-search" aria-hidden="true"></i> | ||
28 | </button> | ||
29 | </div> | ||
30 | </div> | ||
31 | </div> | ||
3 | <div class="col-lg-6"> | 32 | </div> |
4 | <h5 class="modal-title">Búsqueda de Facturas</h5> | 33 | <div class="modal-body" id="modal-body"> |
5 | </div> | 34 | <div class="input-group row"> |
6 | <div class="input-group col-lg-6 pr-0 my-2"> | 35 | <small class="col-md-2 col-4 text-left my-1">Fecha Desde</small> |
7 | <input | 36 | <div class="col-md-4 col-8 input-group mb-2"> |
8 | ladda="searchLoading" | 37 | <div class="input-group-prepend"> |
9 | type="text" | 38 | <div class="input-group-text form-control-sm"> |
10 | class="form-control form-control-sm" | 39 | <i class="fa fa-calendar"></i> |
11 | placeholder="Búsqueda" | 40 | </div> |
12 | ng-model="filters" | 41 | </div> |
13 | ng-change="search()" | 42 | <input |
14 | ng-keydown="busquedaDown($event.keyCode)" | 43 | class="form-control form-control-sm" |
15 | ng-keypress="busquedaPress($event.keyCode)" | 44 | id="inlineFormInputGroup" |
16 | foca-focus="selectedFactura == -1" | 45 | ladda="searchLoading" |
17 | ng-focus="selectedFactura = -1" | 46 | type="date" |
18 | teclado-virtual | 47 | ng-model="fechaDesde" |
19 | /> | 48 | hasta-hoy |
20 | <div class="input-group-append"> | 49 | ng-required="true" |
21 | <button | 50 | /> |
22 | ladda="searchLoading" | 51 | </div> |
23 | class="btn btn-outline-secondary" | 52 | <small class="col-md-2 col-4 text-left my-1">Fecha Hasta</small> |
24 | type="button" | 53 | <div class="col-md-4 col-8 input-group mb-2"> |
25 | ng-click="busquedaPress(13)" | 54 | <div class="input-group-prepend"> |
26 | > | 55 | <div class="input-group-text form-control-sm"> |
27 | <i class="fa fa-search" aria-hidden="true"></i> | 56 | <i class="fa fa-calendar"></i> |
28 | </button> | 57 | </div> |
29 | </div> | 58 | </div> |
30 | </div> | 59 | <input |
31 | </div> | 60 | class="form-control form-control-sm" |
32 | </div> | 61 | id="inlineFormInputGroup" |
33 | <div class="modal-body" id="modal-body"> | 62 | ladda="searchLoading" |
34 | <div class="input-group row"> | 63 | type="date" |
35 | <small class="col-md-2 col-4 text-left my-1">Fecha Desde</small> | 64 | ng-model="fechaHasta" |
36 | <div class="col-md-4 col-8 input-group mb-2"> | 65 | ng-required="true" |
37 | <div class="input-group-prepend"> | 66 | hasta-hoy |
38 | <div class="input-group-text form-control-sm"> | 67 | /> |
39 | <i class="fa fa-calendar"></i> | 68 | </div> |
40 | </div> | 69 | </div> |
41 | </div> | 70 | |
42 | <input | ||
43 | class="form-control form-control-sm" | ||
44 | id="inlineFormInputGroup" | ||
45 | ladda="searchLoading" | ||
46 | type="date" | ||
47 | ng-model="fechaDesde" | ||
48 | hasta-hoy | ||
49 | ng-required="true" | ||
50 | /> | ||
51 | </div> | ||
52 | <small class="col-md-2 col-4 text-left my-1">Fecha Hasta</small> | ||
53 | <div class="col-md-4 col-8 input-group mb-2"> | ||
54 | <div class="input-group-prepend"> | ||
55 | <div class="input-group-text form-control-sm"> | ||
56 | <i class="fa fa-calendar"></i> | ||
57 | </div> | ||
58 | </div> | ||
59 | <input | ||
60 | class="form-control form-control-sm" | ||
61 | id="inlineFormInputGroup" | ||
62 | ladda="searchLoading" | ||
63 | type="date" | ||
64 | ng-model="fechaHasta" | ||
65 | ng-required="true" | ||
66 | hasta-hoy | 71 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> |
67 | /> | 72 | <thead> |
68 | </div> | 73 | <tr> |
69 | </div> | 74 | <th>Cliente</th> |
70 | 75 | <th>Fecha</th> | |
71 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> | 76 | <th>Nro</th> |
72 | <thead> | 77 | <th>Importe</th> |
73 | <tr> | 78 | <th></th> |
74 | <th>Cliente</th> | 79 | </tr> |
75 | <th>Fecha</th> | 80 | </thead> |
76 | <th>Nro</th> | 81 | <tbody> |
77 | <th>Importe</th> | 82 | <tr ng-show="currentPageFacturas.length == 0 && primerBusqueda"> |
78 | <th></th> | 83 | <td colspan="5"> |
79 | </tr> | 84 | No se encontraron resultados. |
80 | </thead> | 85 | </td> |
81 | <tbody> | 86 | </tr> |
82 | <tr ng-show="currentPageFacturas.length == 0 && primerBusqueda"> | 87 | <tr class="selectable" |
83 | <td colspan="5"> | 88 | ng-repeat="(key,factura) in currentPageFacturas"> |
84 | No se encontraron resultados. | 89 | <td ng-bind="factura.cliente.NOM"></td> |
85 | </td> | 90 | <td ng-bind="factura.FEP | date : 'dd/MM/yyyy'"></td> |
86 | </tr> | 91 | <td ng-bind= |
87 | <tr class="selectable" | 92 | "(factura.TCO + '-' + factura.TIP + '-' + factura.SUC + '-' + factura.NCO)"> |
88 | ng-repeat="(key,factura) in currentPageFacturas"> | 93 | </td> |
89 | <td ng-bind="factura.cliente.NOM"></td> | 94 | <td |
90 | <td ng-bind="factura.FEP | date : 'dd/MM/yyyy'"></td> | 95 | class="text-right" |
91 | <td ng-bind= | 96 | ng-bind="(factura.IPA / parametrosFactura.cotizacion) | |
92 | "(factura.TCO + '-' + factura.TIP + '-' + factura.SUC + '-' + factura.NCO)"> | 97 | currency: parametrosFactura.simbolo"></td> |
93 | </td> | 98 | <td><input |
94 | <td | 99 | ng-class="{ |
95 | class="text-right" | 100 | 'btn-secondary': selectedFactura != key, |
96 | ng-bind="(factura.IPA / parametrosFactura.cotizacion) | | 101 | 'btn-primary': selectedFactura == key}" |
97 | currency: parametrosFactura.simbolo"></td> | 102 | ng-keydown="itemFactura($event.keyCode)" |
98 | <td><input | 103 | foca-focus="selectedFactura == {{key}}" |
99 | ng-class="{ | 104 | type="checkbox" |
100 | 'btn-secondary': selectedFactura != key, | 105 | ng-model="factura.checked"/> |
101 | 'btn-primary': selectedFactura == key}" | 106 | </td> |
102 | ng-keydown="itemFactura($event.keyCode)" | 107 | </tr> |
103 | foca-focus="selectedFactura == {{key}}" | 108 | </tbody> |
104 | type="checkbox" | 109 | </table> |
105 | ng-model="factura.checked"/> | 110 | </div> |
111 | <div class="modal-footer py-1"> | ||
112 | <nav ng-show="currentPageFacturas.length > 0 && primerBusqueda" class="mr-auto"> | ||
106 | </td> | 113 | <ul class="pagination pagination-sm justify-content mb-0"> |
107 | </tr> | 114 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> |
108 | </tbody> | 115 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)"> |
109 | </table> | 116 | <span aria-hidden="true">«</span> |
110 | </div> | 117 | <span class="sr-only">Anterior</span> |
111 | <div class="modal-footer py-1"> | 118 | </a> |
112 | <nav ng-show="currentPageFacturas.length > 0 && primerBusqueda" class="mr-auto"> | 119 | </li> |
113 | <ul class="pagination pagination-sm justify-content mb-0"> | 120 | <li |
114 | <li class="page-item" ng-class="{'disabled': currentPage == 1}"> | 121 | class="page-item" |
115 | <a class="page-link" href="javascript:void();" ng-click="selectPage(currentPage - 1)"> | 122 | ng-repeat="pagina in paginas" |
116 | <span aria-hidden="true">«</span> | 123 | ng-class="{'active': pagina == currentPage}" |
117 | <span class="sr-only">Anterior</span> | 124 | > |