Commit 8e5ea04d824994d530639d9a0c3e3dbe38e897b3
Exists in
master
and in
1 other branch
Merge branch 'master' into 'master'
vendedor refactor See merge request modulos-npm/foca-crear-nota-pedido!88
Showing
1 changed file
Show diff stats
src/js/controller.js
| ... | ... | @@ -178,7 +178,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
| 178 | 178 | // Al guardar los datos de la nota de pedido logueamos la |
| 179 | 179 | // actividad para su seguimiento. |
| 180 | 180 | focaSeguimientoService.guardarPosicion( |
| 181 | - $scope.notaPedido.vendedor.codigo, | |
| 181 | + $scope.notaPedido.vendedor.CodVen, | |
| 182 | 182 | 'Nota de pedido', |
| 183 | 183 | 'Nº: ' + $filter('comprobante')([ |
| 184 | 184 | $scope.puntoVenta, |
| ... | ... | @@ -199,7 +199,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
| 199 | 199 | crearNotaPedidoService.crearPlazosParaNotaPedido(json); |
| 200 | 200 | } |
| 201 | 201 | notaPedidoBusinessService.addEstado(data.data.id, |
| 202 | - $scope.notaPedido.vendedor.codigo); | |
| 202 | + $scope.notaPedido.vendedor.CodVen); | |
| 203 | 203 | |
| 204 | 204 | focaModalService.alert('Nota pedido creada'); |
| 205 | 205 | $scope.cabecera = []; |
| ... | ... | @@ -407,8 +407,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
| 407 | 407 | modalInstance.result.then( |
| 408 | 408 | function(vendedor) { |
| 409 | 409 | addCabecera('Vendedor:', vendedor.NomVen); |
| 410 | - $scope.notaPedido.vendedor.codigo = vendedor.CodVen; | |
| 411 | - $scope.notaPedido.vendedor.nombre = vendedor.NomVen; | |
| 410 | + $scope.notaPedido.vendedor = vendedor; | |
| 412 | 411 | }, function() { |
| 413 | 412 | |
| 414 | 413 | } |