From 3da05363ad2260b1b917bc1acf492dbd782be9bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s?= Date: Mon, 10 Dec 2018 15:26:40 -0300 Subject: [PATCH] parametros modal factura --- src/js/controller.js | 3 ++- src/js/service.js | 5 +++-- src/views/foca-modal-factura.html | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index 1c415dd..0b23b0e 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -44,7 +44,8 @@ angular.module('focaModalFactura') //TODO hacer filtro de fecha focaModalFacturaService .getFacturasByIdCliente( - parametrosFactura.cliente, + parametrosFactura.cliente, + parametrosFactura.moneda, '2001-01-01', '2100-12-31' ) diff --git a/src/js/service.js b/src/js/service.js index dfc34de..6f0f980 100644 --- a/src/js/service.js +++ b/src/js/service.js @@ -4,8 +4,9 @@ angular.module('focaModalFactura') 'API_ENDPOINT', function($http, API_ENDPOINT) { return { - getFacturasByIdCliente: function(idCliente, fechaDesde, fechaHasta) { - return $http.get(API_ENDPOINT.URL + '/factura/cliente/' + idCliente + '/' + + getFacturasByIdCliente: function(idCliente, idMoneda, fechaDesde, fechaHasta) { + return $http.get( + API_ENDPOINT.URL + '/factura/cliente/' + idCliente + '/' + idMoneda + '/' + fechaDesde + '/' + fechaHasta); } }; diff --git a/src/views/foca-modal-factura.html b/src/views/foca-modal-factura.html index c411b14..e0f3b8b 100644 --- a/src/views/foca-modal-factura.html +++ b/src/views/foca-modal-factura.html @@ -29,11 +29,11 @@ {{(factura.TCO == 'FT') ? factura.NCU + ' - ' : ''}}{{factura.FEV | date : 'dd/MM/yyyy' : 'GMT'}} {{ (factura.IPA_SHOW / parametrosFactura.cotizacion) | number:2 }} - - + - {{ factura.saldo_show | number:2 }} - - + -