Commit 9521c95d037e77838096152ca82686df58dcd22b
1 parent
fdc60f1cc4
Exists in
master
and in
1 other branch
Primera versión estable.
Showing
3 changed files
with
11 additions
and
9 deletions
Show diff stats
README.md
src/js/route.js
1 | 1 | angular.module('focaCrearRemito') |
2 | 2 | .config(['$routeProvider', function($routeProvider) { |
3 | - $routeProvider.when('/venta-nota-remito/crear', { | |
3 | + $routeProvider.when('/venta-remito/crear', { | |
4 | 4 | controller: 'remitoController', |
5 | - templateUrl: 'src/views/nota-remito.html' | |
5 | + templateUrl: 'src/views/remito.html' | |
6 | 6 | }); |
7 | 7 | }]); |
src/js/service.js
... | ... | @@ -3,10 +3,10 @@ angular.module('focaCrearRemito') |
3 | 3 | var route = API_ENDPOINT.URL; |
4 | 4 | return { |
5 | 5 | crearRemito: function(remito) { |
6 | - return $http.post(route + '/nota-remito', {remito: remito}); | |
6 | + return $http.post(route + '/nota-pedido', {remito: remito}); | |
7 | 7 | }, |
8 | 8 | obtenerRemito: function() { |
9 | - return $http.get(route +'/nota-remito'); | |
9 | + return $http.get(route +'/nota-pedido'); | |
10 | 10 | }, |
11 | 11 | setRemito: function(remito) { |
12 | 12 | this.remito = remito; |
... | ... | @@ -18,14 +18,14 @@ angular.module('focaCrearRemito') |
18 | 18 | return this.remito; |
19 | 19 | }, |
20 | 20 | getArticulosByIdRemito: function(id) { |
21 | - return $http.get(route+'/articulos/nota-remito/'+id); | |
21 | + return $http.get(route+'/articulos/nota-pedido/'+id); | |
22 | 22 | }, |
23 | 23 | crearArticulosParaRemito: function(articuloRemito) { |
24 | - return $http.post(route + '/articulos/nota-remito', | |
24 | + return $http.post(route + '/articulos/nota-pedido', | |
25 | 25 | {articuloRemito: articuloRemito}); |
26 | 26 | }, |
27 | 27 | getDomiciliosByIdRemito: function(id) { |
28 | - return $http.get(route +'/nota-remito/'+id+'/domicilios'); | |
28 | + return $http.get(route +'/nota-pedido/'+id+'/domicilios'); | |
29 | 29 | }, |
30 | 30 | getDomiciliosByIdCliente: function(id) { |
31 | 31 | var idTipoEntrega = 2;//Solo traigo los domicilios que tienen tipo 2 (tipo entrega) |
... | ... | @@ -44,7 +44,7 @@ angular.module('focaCrearRemito') |
44 | 44 | return $http.post(route + '/flete', {flete : flete}); |
45 | 45 | }, |
46 | 46 | crearPlazosParaRemito: function(plazos) { |
47 | - return $http.post(route + '/plazo-pago/nota-remito', plazos); | |
47 | + return $http.post(route + '/plazo-pago/nota-pedido', plazos); | |
48 | 48 | }, |
49 | 49 | getCotizacionByIdMoneda: function(id) { |
50 | 50 | return $http.get(route + '/moneda/' + id); |