Commit 8cba890f36bb798a4d62de4a04beb7e0cdffc31a

Authored by Marcelo Puebla
1 parent 1b2312a914
Exists in master and in 1 other branch develop

Cambio en el servicio para hacer get de facturas.

Showing 1 changed file with 5 additions and 5 deletions   Show diff stats
1 angular.module('focaModalFactura') 1 angular.module('focaModalFactura')
2 .factory('focaModalFacturaService', [ 2 .factory('focaModalFacturaService', [
3 '$http', 3 '$http',
4 'API_ENDPOINT', 4 'API_ENDPOINT',
5 function($http, API_ENDPOINT) { 5 function ($http, API_ENDPOINT) {
6 return { 6 return {
7 getFacturasByIdCliente: function(idCliente, idMoneda, fechaDesde, fechaHasta) { 7 getFacturasByIdCliente: function (idCliente, idMoneda, fechaDesde, fechaHasta) {
8 return $http.get( 8 return $http.get(
9 API_ENDPOINT.URL + '/factura/cliente/' + idCliente + '/' + idMoneda + '/' + 9 API_ENDPOINT.URL + '/factura/cliente/' + idCliente + '/' + idMoneda + '/' +
10 fechaDesde + '/' + fechaHasta); 10 fechaDesde + '/' + fechaHasta + '/' + false);
11 }, 11 },
12 enviarFacturaPorMail: function(receiver, factura){ 12 enviarFacturaPorMail: function (receiver, factura) {
13 return $http.post(API_ENDPOINT.URL + '/mail', 13 return $http.post(API_ENDPOINT.URL + '/mail',
14 {receiver: receiver, factura: factura}); 14 { receiver: receiver, factura: factura });
15 } 15 }
16 }; 16 };
17 } 17 }
18 ]); 18 ]);
19 19