Commit 427ce8385840a385ece3a4eeeff9b3a969ea6011
Exists in
master
and in
1 other branch
Merge branch 'master' into 'master'
Master See merge request !17
Showing
1 changed file
 
Show diff stats
src/js/controller.js
| ... | ... | @@ -76,9 +76,8 @@ angular.module('focaCrearRemito') .controller('remitoController', | 
| 76 | 76 | controller: 'focaModalNotaPedidoController', | 
| 77 | 77 | size: 'lg', | 
| 78 | 78 | resolve: { | 
| 79 | - usadoPor: function() { | |
| 80 | - return 'remito'; | |
| 81 | - } | |
| 79 | + usadoPor: function() { return 'remito'; }, | |
| 80 | + idVendedor: function() { return null; } | |
| 82 | 81 | } | 
| 83 | 82 | } | 
| 84 | 83 | ); | 
| ... | ... | @@ -493,6 +492,7 @@ angular.module('focaCrearRemito') .controller('remitoController', | 
| 493 | 492 | valor: vendedor.NomVen | 
| 494 | 493 | }); | 
| 495 | 494 | $scope.remito.idVendedor = vendedor.CodVen; | 
| 495 | + $scope.vendedor = vendedor; | |
| 496 | 496 | }, function() { | 
| 497 | 497 | |
| 498 | 498 | } | 
| ... | ... | @@ -536,6 +536,9 @@ angular.module('focaCrearRemito') .controller('remitoController', | 
| 536 | 536 | ariaLabelledBy: 'Busqueda de Cliente', | 
| 537 | 537 | templateUrl: 'foca-busqueda-cliente-modal.html', | 
| 538 | 538 | controller: 'focaBusquedaClienteModalController', | 
| 539 | + resolve: { | |
| 540 | + vendedor: function() { return $scope.vendedor; } | |
| 541 | + }, | |
| 539 | 542 | size: 'lg' | 
| 540 | 543 | } | 
| 541 | 544 | ); |