Commit 903d05c1f2577102113734376c7ac980a77a8ff0
1 parent
9e1dec3ae5
Exists in
master
and in
1 other branch
Agrego comentario para marcar que está en desarrollo
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/js/service.js
| 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 | //EN DESARROLLO | ||
| 18 | getDomicilios: function(id) { | 19 | getDomicilios: function(id) { |
| 19 | // return $http.get(route + '/'+id) | 20 | // return $http.get(route + '/'+id) |
| 20 | var domicilio = [ | 21 | var domicilio = [ |
| 21 | { | 22 | { |
| 22 | id: 1, | 23 | id: 1, |
| 23 | dom: 'RISSO PATRON 781' | 24 | dom: 'RISSO PATRON 781' |
| 24 | }, | 25 | }, |
| 25 | { | 26 | { |
| 26 | id: 2, | 27 | id: 2, |
| 27 | dom: 'MARIANO MORENO 533' | 28 | dom: 'MARIANO MORENO 533' |
| 28 | }, | 29 | }, |
| 29 | { | 30 | { |
| 30 | id: 3, | 31 | id: 3, |
| 31 | dom: 'SALTA 796' | 32 | dom: 'SALTA 796' |
| 32 | } | 33 | } |
| 33 | ] | 34 | ] |
| 34 | return domicilio; | 35 | return domicilio; |
| 35 | }, | 36 | }, |
| 36 | getPrecioCondicion: function() { | 37 | getPrecioCondicion: function() { |
| 37 | return $http.get(route + '/precio-condicion') | 38 | return $http.get(route + '/precio-condicion') |
| 38 | }, | 39 | }, |
| 39 | getPrecioCondicionById: function(id) { | 40 | getPrecioCondicionById: function(id) { |
| 40 | return $http.get(route + '/precio-condicion/' + id) | 41 | return $http.get(route + '/precio-condicion/' + id) |
| 41 | }, | 42 | }, |
| 42 | getPlazoPagoByPrecioCondicion: function(id) { | 43 | getPlazoPagoByPrecioCondicion: function(id) { |
| 43 | return $http.get(route + '/plazo-pago/precio-condicion/'+ id) | 44 | return $http.get(route + '/plazo-pago/precio-condicion/'+ id) |
| 44 | } | 45 | } |
| 45 | } | 46 | } |
| 46 | }]) | 47 | }]) |
| 47 | 48 |