Commit 275df735ff3405460b8e12946982aea9a13ed32f
Exists in
master
and in
1 other branch
Merge branch 'master' into 'master'
Master (pmarco) See merge request modulos-npm/foca-crear-remito!1
Showing
4 changed files
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,11 @@ 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 | + // TODO: Cambiar para usar el servicio /remito | |
| 7 | + return $http.post(route + '/nota-pedido', {remito: remito}); | |
| 7 | 8 | }, |
| 8 | 9 | obtenerRemito: function() { |
| 9 | - return $http.get(route +'/nota-remito'); | |
| 10 | + return $http.get(route +'/nota-pedido'); | |
| 10 | 11 | }, |
| 11 | 12 | setRemito: function(remito) { |
| 12 | 13 | this.remito = remito; |
| ... | ... | @@ -18,14 +19,14 @@ angular.module('focaCrearRemito') |
| 18 | 19 | return this.remito; |
| 19 | 20 | }, |
| 20 | 21 | getArticulosByIdRemito: function(id) { |
| 21 | - return $http.get(route+'/articulos/nota-remito/'+id); | |
| 22 | + return $http.get(route+'/articulos/nota-pedido/'+id); | |
| 22 | 23 | }, |
| 23 | 24 | crearArticulosParaRemito: function(articuloRemito) { |
| 24 | - return $http.post(route + '/articulos/nota-remito', | |
| 25 | + return $http.post(route + '/articulos/nota-pedido', | |
| 25 | 26 | {articuloRemito: articuloRemito}); |
| 26 | 27 | }, |
| 27 | 28 | getDomiciliosByIdRemito: function(id) { |
| 28 | - return $http.get(route +'/nota-remito/'+id+'/domicilios'); | |
| 29 | + return $http.get(route +'/nota-pedido/'+id+'/domicilios'); | |
| 29 | 30 | }, |
| 30 | 31 | getDomiciliosByIdCliente: function(id) { |
| 31 | 32 | var idTipoEntrega = 2;//Solo traigo los domicilios que tienen tipo 2 (tipo entrega) |
| ... | ... | @@ -44,7 +45,7 @@ angular.module('focaCrearRemito') |
| 44 | 45 | return $http.post(route + '/flete', {flete : flete}); |
| 45 | 46 | }, |
| 46 | 47 | crearPlazosParaRemito: function(plazos) { |
| 47 | - return $http.post(route + '/plazo-pago/nota-remito', plazos); | |
| 48 | + return $http.post(route + '/plazo-pago/nota-pedido', plazos); | |
| 48 | 49 | }, |
| 49 | 50 | getCotizacionByIdMoneda: function(id) { |
| 50 | 51 | return $http.get(route + '/moneda/' + id); |
src/views/remito.html
| ... | ... | @@ -9,7 +9,15 @@ |
| 9 | 9 | <h5>REMITO</h5> |
| 10 | 10 | </div> |
| 11 | 11 | <div class="col-5 col-sm-4 numero-remito" |
| 12 | - >Nº {{puntoVenta}}-{{comprobante}} | |
| 12 | + > | |
| 13 | + Nº {{puntoVenta}}-{{comprobante}} | |
| 14 | + <button | |
| 15 | + class="btn btn-xs" | |
| 16 | + type="button" | |
| 17 | + ng-click="buscarNotaPedido()" | |
| 18 | + > | |
| 19 | + <i class="fa fa-search"></i> | |
| 20 | + </button> | |
| 13 | 21 | </div> |
| 14 | 22 | <div class="col-7 col-sm-4 text-right"> |
| 15 | 23 | Fecha: |