Commit 9a622b982863a2d45cd4ee3437449a129f7304e0
1 parent
ab0f5bfabe
Exists in
master
vendedor refactor
Showing
1 changed file
with
3 additions
and
4 deletions
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 | } |