Commit d9a8ec7d1e9c88874bacae986593c3c03475f0b9
Exists in
master
and in
1 other branch
Merge branch 'master' into 'master'
Master See merge request !9
Showing
3 changed files
Show diff stats
src/js/controller.js
| ... | ... | @@ -44,7 +44,8 @@ angular.module('focaModalFactura') |
| 44 | 44 | //TODO hacer filtro de fecha |
| 45 | 45 | focaModalFacturaService |
| 46 | 46 | .getFacturasByIdCliente( |
| 47 | - parametrosFactura.cliente, | |
| 47 | + parametrosFactura.cliente, | |
| 48 | + parametrosFactura.moneda, | |
| 48 | 49 | '2001-01-01', |
| 49 | 50 | '2100-12-31' |
| 50 | 51 | ) |
src/js/service.js
| ... | ... | @@ -4,8 +4,9 @@ angular.module('focaModalFactura') |
| 4 | 4 | 'API_ENDPOINT', |
| 5 | 5 | function($http, API_ENDPOINT) { |
| 6 | 6 | return { |
| 7 | - getFacturasByIdCliente: function(idCliente, fechaDesde, fechaHasta) { | |
| 8 | - return $http.get(API_ENDPOINT.URL + '/factura/cliente/' + idCliente + '/' + | |
| 7 | + getFacturasByIdCliente: function(idCliente, idMoneda, fechaDesde, fechaHasta) { | |
| 8 | + return $http.get( | |
| 9 | + API_ENDPOINT.URL + '/factura/cliente/' + idCliente + '/' + idMoneda + '/' + | |
| 9 | 10 | fechaDesde + '/' + fechaHasta); |
| 10 | 11 | } |
| 11 | 12 | }; |
src/views/foca-modal-factura.html
| ... | ... | @@ -29,11 +29,11 @@ |
| 29 | 29 | <td>{{(factura.TCO == 'FT') ? factura.NCU + ' - ' : ''}}{{factura.FEV | date : 'dd/MM/yyyy' : 'GMT'}}</td> |
| 30 | 30 | <td class="text-right"> |
| 31 | 31 | {{ (factura.IPA_SHOW / parametrosFactura.cotizacion) | number:2 }} |
| 32 | - <span ng-class="{{'invisible': factura.IPA >= 0}}">-</span> | |
| 32 | + <span ng-class="{'invisible': factura.IPA >= 0}">-</span> | |
| 33 | 33 | </td> |
| 34 | 34 | <td class="text-right"> |
| 35 | 35 | {{ factura.saldo_show | number:2 }} |
| 36 | - <span ng-class="{{'invisible': factura.saldo >= 0}}">-</span> | |
| 36 | + <span ng-class="{'invisible': factura.saldo >= 0}">-</span> | |
| 37 | 37 | </td> |
| 38 | 38 | <td class="text-right"> |
| 39 | 39 | <input |