diff --git a/src/js/service.js b/src/js/service.js index 619b804..f54340f 100644 --- a/src/js/service.js +++ b/src/js/service.js @@ -20,19 +20,27 @@ angular.module('focaCrearNotaPedido') var domicilio = [ { id: 1, - nombre: 'godoy Cruz' + dom: 'RISSO PATRON 781' }, { id: 2, - nombre: 'capital' + dom: 'MARIANO MORENO 533' }, { id: 3, - nombre: 'mendoza' + dom: 'SALTA 796' } ] - return + 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) } } }]) - \ No newline at end of file