Commit c85b6a340104d49e8e350c000ce20c51b44b4cf4
1 parent
9b9585d719
Exists in
master
and in
2 other branches
cambio para merge request
Showing
2 changed files
with
11 additions
and
10 deletions
Show diff stats
package.json
... | ... | @@ -10,10 +10,11 @@ |
10 | 10 | "type": "git", |
11 | 11 | "url": "https://debo.suite.repo/modulos-npm/foca-crear-hoja-ruta.git" |
12 | 12 | }, |
13 | - "author": "Nicolás Guarnieri", | |
13 | + "author": "Foca Software", | |
14 | 14 | "license": "ISC", |
15 | 15 | "devDependencies": { |
16 | 16 | "angular": "^1.7.5", |
17 | + "angular-ladda": "^0.4.3", | |
17 | 18 | "angular-route": "^1.7.5", |
18 | 19 | "bootstrap": "^4.1.3", |
19 | 20 | "foca-directivas": "git+https://debo.suite.repo/modulos-npm/foca-directivas.git", |
... | ... | @@ -32,7 +33,7 @@ |
32 | 33 | "jasmine-core": "^3.3.0", |
33 | 34 | "jquery": "^3.3.1", |
34 | 35 | "jshint": "^2.9.6", |
35 | - "ladda": "^2.0.1", | |
36 | + "ladda": "1.0.6", | |
36 | 37 | "pre-commit": "^1.2.2", |
37 | 38 | "pump": "^3.0.0", |
38 | 39 | "ui-bootstrap4": "^3.0.5" |
src/js/service.js
... | ... | @@ -3,10 +3,10 @@ angular.module('focaCrearHojaRuta') |
3 | 3 | var route = API_ENDPOINT.URL; |
4 | 4 | return { |
5 | 5 | crearHojaRuta: function(hojaRuta) { |
6 | - return $http.post(route + '/nota-pedido', {hojaRuta: hojaRuta}); | |
6 | + return $http.post(route + '/hoja-ruta', {hojaRuta: hojaRuta}); | |
7 | 7 | }, |
8 | 8 | obtenerHojaRuta: function() { |
9 | - return $http.get(route +'/nota-pedido'); | |
9 | + return $http.get(route +'/hoja-ruta'); | |
10 | 10 | }, |
11 | 11 | setHojaRuta: function(hojaRuta) { |
12 | 12 | this.hojaRuta = hojaRuta; |
... | ... | @@ -18,14 +18,14 @@ angular.module('focaCrearHojaRuta') |
18 | 18 | return this.hojaRuta; |
19 | 19 | }, |
20 | 20 | getArticulosByIdHojaRuta: function(id) { |
21 | - return $http.get(route+'/articulos/nota-pedido/'+id); | |
21 | + return $http.get(route+'/articulos/hoja-ruta/'+id); | |
22 | 22 | }, |
23 | 23 | crearArticulosParaHojaRuta: function(articuloHojaRuta) { |
24 | - return $http.post(route + '/articulos/nota-pedido', | |
24 | + return $http.post(route + '/articulos/hoja-ruta', | |
25 | 25 | {articuloHojaRuta: articuloHojaRuta}); |
26 | 26 | }, |
27 | 27 | getDomiciliosByIdHojaRuta: function(id) { |
28 | - return $http.get(route +'/nota-pedido/'+id+'/domicilios'); | |
28 | + return $http.get(route +'/hoja-ruta/' + id + '/domicilios'); | |
29 | 29 | }, |
30 | 30 | getDomiciliosByIdCliente: function(id) { |
31 | 31 | var idTipoEntrega = 2;//Solo traigo los domicilios que tienen tipo 2 (tipo entrega) |
... | ... | @@ -38,13 +38,13 @@ angular.module('focaCrearHojaRuta') |
38 | 38 | return $http.get(route + '/precio-condicion/' + id); |
39 | 39 | }, |
40 | 40 | getPlazoPagoByPrecioCondicion: function(id) { |
41 | - return $http.get(route + '/plazo-pago/precio-condicion/'+ id); | |
41 | + return $http.get(route + '/plazo-pago/precio-condicion/' + id); | |
42 | 42 | }, |
43 | 43 | crearFlete: function(flete) { |
44 | 44 | return $http.post(route + '/flete', {flete : flete}); |
45 | 45 | }, |
46 | 46 | crearPlazosParaHojaRuta: function(plazos) { |
47 | - return $http.post(route + '/plazo-pago/nota-pedido', plazos); | |
47 | + return $http.post(route + '/plazo-pago/hoja-ruta', plazos); | |
48 | 48 | }, |
49 | 49 | getCotizacionByIdMoneda: function(id) { |
50 | 50 | return $http.get(route + '/moneda/' + id); |
... | ... | @@ -53,7 +53,7 @@ angular.module('focaCrearHojaRuta') |
53 | 53 | return $http.post(route + '/estado', {estado: estado}); |
54 | 54 | }, |
55 | 55 | getNumeroHojaRuta: function() { |
56 | - return $http.get(route + '/nota-pedido/numero-siguiente'); | |
56 | + return $http.get(route + '/hoja-ruta/numero-siguiente'); | |
57 | 57 | } |
58 | 58 | }; |
59 | 59 | }]); |