angular.module('focaCrearNotaPedido') .service('crearNotaPedidoService', ['$http',function($http) { var route = 'http://192.168.0.23:9900'; var notaPedido; return { crearNotaPedido: function(obj) { return $http.get(route + '/nota-pedidos/crear'); }, obtenerNotaPedido: function() { return $http.get(route +'/nota-pedido'); }, setNotaPedido: function(notaPedido) { this.notaPedido = notaPedido; }, getNotaPedido: function() { return this.notaPedido; }, //EN DESARROLLO getDomicilios: function(id) { // return $http.get(route + '/'+id) var domicilio = [ { id: 1, dom: 'RISSO PATRON 781' }, { id: 2, dom: 'MARIANO MORENO 533' }, { id: 3, dom: 'SALTA 796' } ] return domicilio; }, getPrecioCondicion: function() { return $http.get(route + '/precio-condicion') }, getPrecioCondicionById: function(id) { return $http.get(route + '/precio-condicion/' + id) }, getPlazoPagoByPrecioCondicion: function(id) { return $http.get(route + '/plazo-pago/precio-condicion/'+ id) } } }])