From c85b6a340104d49e8e350c000ce20c51b44b4cf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s?= Date: Fri, 9 Nov 2018 13:49:39 -0300 Subject: [PATCH] cambio para merge request --- package.json | 5 +++-- src/js/service.js | 16 ++++++++-------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 117c3ad..adde02d 100644 --- a/package.json +++ b/package.json @@ -10,10 +10,11 @@ "type": "git", "url": "https://debo.suite.repo/modulos-npm/foca-crear-hoja-ruta.git" }, - "author": "Nicolás Guarnieri", + "author": "Foca Software", "license": "ISC", "devDependencies": { "angular": "^1.7.5", + "angular-ladda": "^0.4.3", "angular-route": "^1.7.5", "bootstrap": "^4.1.3", "foca-directivas": "git+https://debo.suite.repo/modulos-npm/foca-directivas.git", @@ -32,7 +33,7 @@ "jasmine-core": "^3.3.0", "jquery": "^3.3.1", "jshint": "^2.9.6", - "ladda": "^2.0.1", + "ladda": "1.0.6", "pre-commit": "^1.2.2", "pump": "^3.0.0", "ui-bootstrap4": "^3.0.5" diff --git a/src/js/service.js b/src/js/service.js index 1f2d0a4..23a378a 100644 --- a/src/js/service.js +++ b/src/js/service.js @@ -3,10 +3,10 @@ angular.module('focaCrearHojaRuta') var route = API_ENDPOINT.URL; return { crearHojaRuta: function(hojaRuta) { - return $http.post(route + '/nota-pedido', {hojaRuta: hojaRuta}); + return $http.post(route + '/hoja-ruta', {hojaRuta: hojaRuta}); }, obtenerHojaRuta: function() { - return $http.get(route +'/nota-pedido'); + return $http.get(route +'/hoja-ruta'); }, setHojaRuta: function(hojaRuta) { this.hojaRuta = hojaRuta; @@ -18,14 +18,14 @@ angular.module('focaCrearHojaRuta') return this.hojaRuta; }, getArticulosByIdHojaRuta: function(id) { - return $http.get(route+'/articulos/nota-pedido/'+id); + return $http.get(route+'/articulos/hoja-ruta/'+id); }, crearArticulosParaHojaRuta: function(articuloHojaRuta) { - return $http.post(route + '/articulos/nota-pedido', + return $http.post(route + '/articulos/hoja-ruta', {articuloHojaRuta: articuloHojaRuta}); }, getDomiciliosByIdHojaRuta: function(id) { - return $http.get(route +'/nota-pedido/'+id+'/domicilios'); + return $http.get(route +'/hoja-ruta/' + id + '/domicilios'); }, getDomiciliosByIdCliente: function(id) { var idTipoEntrega = 2;//Solo traigo los domicilios que tienen tipo 2 (tipo entrega) @@ -38,13 +38,13 @@ angular.module('focaCrearHojaRuta') return $http.get(route + '/precio-condicion/' + id); }, getPlazoPagoByPrecioCondicion: function(id) { - return $http.get(route + '/plazo-pago/precio-condicion/'+ id); + return $http.get(route + '/plazo-pago/precio-condicion/' + id); }, crearFlete: function(flete) { return $http.post(route + '/flete', {flete : flete}); }, crearPlazosParaHojaRuta: function(plazos) { - return $http.post(route + '/plazo-pago/nota-pedido', plazos); + return $http.post(route + '/plazo-pago/hoja-ruta', plazos); }, getCotizacionByIdMoneda: function(id) { return $http.get(route + '/moneda/' + id); @@ -53,7 +53,7 @@ angular.module('focaCrearHojaRuta') return $http.post(route + '/estado', {estado: estado}); }, getNumeroHojaRuta: function() { - return $http.get(route + '/nota-pedido/numero-siguiente'); + return $http.get(route + '/hoja-ruta/numero-siguiente'); } }; }]); -- 1.9.1