Commit 64ca5b414792b3e939ec357a00153f3e3fe1df89
1 parent
bdbd4d53ad
Exists in
master
Creo servicio para llamar a domicilios que tengan solo tipo de entrega
Showing
1 changed file
with
3 additions
and
19 deletions
Show diff stats
src/js/service.js
| ... | ... | @@ -27,25 +27,9 @@ angular.module('focaCrearNotaPedido') |
| 27 | 27 | getDomiciliosByIdNotaPedido: function(id) { |
| 28 | 28 | return $http.get(route +'/nota-pedido/'+id+'/domicilios'); |
| 29 | 29 | }, |
| 30 | - //EN DESARROLLO | |
| 31 | - getDomicilios: function(id) { | |
| 32 | - // return $http.get(route + '/'+id) | |
| 33 | - id='le asigno un valor para pasar pre commit'; | |
| 34 | - var domicilio = [ | |
| 35 | - { | |
| 36 | - id: 1, | |
| 37 | - dom: 'RISSO PATRON 781' | |
| 38 | - }, | |
| 39 | - { | |
| 40 | - id: 2, | |
| 41 | - dom: 'MARIANO MORENO 533' | |
| 42 | - }, | |
| 43 | - { | |
| 44 | - id: 3, | |
| 45 | - dom: 'SALTA 796' | |
| 46 | - } | |
| 47 | - ]; | |
| 48 | - return domicilio; | |
| 30 | + getDomiciliosByIdCliente: function(id) { | |
| 31 | + var idTipoEntrega = 2;//Solo traigo los domicilios que tienen tipo 2 (tipo entrega) | |
| 32 | + return $http.get(route + '/domicilio/tipo/' + idTipoEntrega + '/cliente/' + id ); | |
| 49 | 33 | }, |
| 50 | 34 | getPrecioCondicion: function() { |
| 51 | 35 | return $http.get(route + '/precio-condicion'); |