Commit a1147c0f6567d55fae45bfcaf6ee08796112257c

Authored by Eric Fernandez
1 parent b185d5af57
Exists in master and in 1 other branch develop

agrego servicios para de precios y condiciones

Showing 1 changed file with 13 additions and 5 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; 7 return;
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 getDomicilios: function(id) { 18 getDomicilios: function(id) {
19 // return $http.get(route + '/'+id) 19 // return $http.get(route + '/'+id)
20 var domicilio = [ 20 var domicilio = [
21 { 21 {
22 id: 1, 22 id: 1,
23 nombre: 'godoy Cruz' 23 dom: 'RISSO PATRON 781'
24 }, 24 },
25 { 25 {
26 id: 2, 26 id: 2,
27 nombre: 'capital' 27 dom: 'MARIANO MORENO 533'
28 }, 28 },
29 { 29 {
30 id: 3, 30 id: 3,
31 nombre: 'mendoza' 31 dom: 'SALTA 796'
32 } 32 }
33 ] 33 ]
34 return 34 return domicilio;
35 },
36 getPrecioCondicion: function() {
37 return $http.get(route + '/precio-condicion')
38 },
39 getPrecioCondicionById: function(id) {
40 return $http.get(route + '/precio-condicion/' + id)
41 },
42 getPlazoPagoByPrecioCondicion: function(id) {
43 return $http.get(route + '/plazo-pago/precio-condicion/'+ id)
35 } 44 }
36 } 45 }
37 }]) 46 }])
38