Commit 71810a12b963a9676237cdf3011b34fb1118f034
1 parent
2686889eb4
Exists in
master
funcionamiento para acobypag_vencimiento
Showing
2 changed files
with
13 additions
and
13 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -43,9 +43,11 @@ angular.module('focaModalFactura') |
43 | 43 | $scope.searchLoading = true; |
44 | 44 | //TODO hacer filtro de fecha |
45 | 45 | focaModalFacturaService |
46 | - .getFacturasByIdCliente(parametrosFactura.cliente, $scope.fechaDesde | |
47 | - .toISOString().split('.')[0], | |
48 | - $scope.fechaHasta.toISOString().split('.')[0]) | |
46 | + .getFacturasByIdCliente( | |
47 | + parametrosFactura.cliente, | |
48 | + '2001-01-01', | |
49 | + '2100-12-31' | |
50 | + ) | |
49 | 51 | .then(llenarDatos); |
50 | 52 | } |
51 | 53 | }; |
src/views/foca-modal-factura.html
1 | 1 | <div class="modal-header py-1"> |
2 | 2 | <div class="row w-100"> |
3 | 3 | <div class="col-lg-6"> |
4 | - <h5 class="modal-title">Búsqueda de Facturas</h5> | |
4 | + <h5 class="modal-title">Búsqueda de Comprobantes</h5> | |
5 | 5 | </div> |
6 | 6 | <div class="input-group col-lg-6 pr-0 my-2"> |
7 | 7 | <input |
... | ... | @@ -38,11 +38,10 @@ |
38 | 38 | <table ng-show="primerBusqueda" class="table table-striped table-sm"> |
39 | 39 | <thead> |
40 | 40 | <tr> |
41 | - <th>Cliente</th> | |
42 | 41 | <th>Fecha</th> |
43 | 42 | <th>Nro</th> |
44 | - <th>Importe</th> | |
45 | - <th></th> | |
43 | + <th class="text-right">Importe</th> | |
44 | + <th class="text-right"></th> | |
46 | 45 | </tr> |
47 | 46 | </thead> |
48 | 47 | <tbody> |
... | ... | @@ -53,23 +52,22 @@ |
53 | 52 | </tr> |
54 | 53 | <tr class="selectable" |
55 | 54 | ng-repeat="(key,factura) in currentPageFacturas"> |
56 | - <td ng-bind="factura.cliente.NOM"></td> | |
57 | 55 | <td ng-bind="factura.FEP | date : 'dd/MM/yyyy'"></td> |
58 | - <td ng-bind= | |
59 | - "(factura.TCO + '-' + factura.TIP + '-' + factura.SUC + '-' + factura.NCO)"> | |
60 | - </td> | |
56 | + <td ng-bind= "factura.numeroFactura"></td> | |
61 | 57 | <td |
62 | 58 | class="text-right" |
63 | 59 | ng-bind="(factura.IPA / parametrosFactura.cotizacion) | |
64 | 60 | currency: parametrosFactura.simbolo"></td> |
65 | - <td><input | |
61 | + <td class="text-right"> | |
62 | + <input | |
66 | 63 | ng-class="{ |
67 | 64 | 'btn-secondary': selectedFactura != key, |
68 | 65 | 'btn-primary': selectedFactura == key}" |
69 | 66 | ng-keydown="itemFactura($event.keyCode)" |
70 | 67 | foca-focus="selectedFactura == {{key}}" |
71 | 68 | type="checkbox" |
72 | - ng-model="factura.checked"/> | |
69 | + ng-model="factura.checked" | |
70 | + /> | |
73 | 71 | </td> |
74 | 72 | </tr> |
75 | 73 | </tbody> |