Commit 744002158ed143cd7f9ddc057af0141e14759cb7
Exists in
master
Merge branch 'develop' into 'master'
Develop See merge request !28
Showing
2 changed files
Show diff stats
package.json
... | ... | @@ -3,6 +3,7 @@ |
3 | 3 | "version": "0.0.1", |
4 | 4 | "description": "Modal para seleccion facturas", |
5 | 5 | "scripts": { |
6 | + "refresh": "gulp uglify && cp tmp/foca-modal-factura.js ../wrapper-demo/node_modules/foca-modal-factura/dist/foca-modal-factura.min.js", | |
6 | 7 | "test": "echo \"Error: no test specified\" && exit 1", |
7 | 8 | "gulp-pre-commit": "gulp pre-commit", |
8 | 9 | "compile": "gulp uglify", |
src/js/service.js
... | ... | @@ -2,16 +2,16 @@ angular.module('focaModalFactura') |
2 | 2 | .factory('focaModalFacturaService', [ |
3 | 3 | '$http', |
4 | 4 | 'API_ENDPOINT', |
5 | - function($http, API_ENDPOINT) { | |
5 | + function ($http, API_ENDPOINT) { | |
6 | 6 | return { |
7 | - getFacturasByIdCliente: function(idCliente, idMoneda, fechaDesde, fechaHasta) { | |
7 | + getFacturasByIdCliente: function (idCliente, idMoneda, fechaDesde, fechaHasta) { | |
8 | 8 | return $http.get( |
9 | 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 | 13 | return $http.post(API_ENDPOINT.URL + '/mail', |
14 | - {receiver: receiver, factura: factura}); | |
14 | + { receiver: receiver, factura: factura }); | |
15 | 15 | } |
16 | 16 | }; |
17 | 17 | } |