Commit 2fafaf6efb5aa760b87f61408ba60fa72322a6c1

Authored by Eric Fernandez
1 parent 7d07fe1084
Exists in master

parámetro entere{}

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
1 angular.module('focaCrearNotaPedido') 1 angular.module('focaCrearNotaPedido')
2 .service('crearNotaPedidoService', ['$http',function($http) { 2 .service('crearNotaPedidoService', ['$http',function($http) {
3 var route = 'http://192.168.0.23:9900'; 3 var route = 'http://192.168.0.23:9900';
4 var notaPedido; 4 var notaPedido;
5 return { 5 return {
6 crearNotaPedido: function(obj) { 6 crearNotaPedido: function(obj) {
7 return $http.post(route + '/nota-pedidos/crear', obj); 7 return $http.post(route + '/nota-pedidos/crear', {obj});
8 }, 8 },
9 obtenerNotaPedido: function() { 9 obtenerNotaPedido: function() {
10 return $http.get(route +'/nota-pedido'); 10 return $http.get(route +'/nota-pedido');
11 }, 11 },
12 setNotaPedido: function(notaPedido) { 12 setNotaPedido: function(notaPedido) {
13 this.notaPedido = notaPedido; 13 this.notaPedido = notaPedido;
14 }, 14 },
15 getNotaPedido: function() { 15 getNotaPedido: function() {
16 return this.notaPedido; 16 return this.notaPedido;
17 }, 17 },
18 //EN DESARROLLO 18 //EN DESARROLLO
19 getDomicilios: function(id) { 19 getDomicilios: function(id) {
20 // return $http.get(route + '/'+id) 20 // return $http.get(route + '/'+id)
21 var domicilio = [ 21 var domicilio = [
22 { 22 {
23 id: 1, 23 id: 1,
24 dom: 'RISSO PATRON 781' 24 dom: 'RISSO PATRON 781'
25 }, 25 },
26 { 26 {
27 id: 2, 27 id: 2,
28 dom: 'MARIANO MORENO 533' 28 dom: 'MARIANO MORENO 533'
29 }, 29 },
30 { 30 {
31 id: 3, 31 id: 3,
32 dom: 'SALTA 796' 32 dom: 'SALTA 796'
33 } 33 }
34 ] 34 ]
35 return domicilio; 35 return domicilio;
36 }, 36 },
37 getPrecioCondicion: function() { 37 getPrecioCondicion: function() {
38 return $http.get(route + '/precio-condicion') 38 return $http.get(route + '/precio-condicion')
39 }, 39 },
40 getPrecioCondicionById: function(id) { 40 getPrecioCondicionById: function(id) {
41 return $http.get(route + '/precio-condicion/' + id) 41 return $http.get(route + '/precio-condicion/' + id)
42 }, 42 },
43 getPlazoPagoByPrecioCondicion: function(id) { 43 getPlazoPagoByPrecioCondicion: function(id) {
44 return $http.get(route + '/plazo-pago/precio-condicion/'+ id) 44 return $http.get(route + '/plazo-pago/precio-condicion/'+ id)
45 } 45 }
46 } 46 }
47 }]) 47 }])
48 48