diff --git a/src/js/controller.js b/src/js/controller.js index 1eba9f3..f32739c 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -231,7 +231,15 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', templateUrl: 'foca-modal-nota-pedido.html', controller: 'focaModalNotaPedidoController', size: 'lg', - resolve: {usadoPor: function() {return 'notaPedido';}} + resolve: { + usadoPor: function() {return 'notaPedido';}, + idVendedor: function() { + if(APP === 'distribuidor') + return $scope.notaPedido.vendedor.CodVen; + else + return null; + } + } } ); modalInstance.result.then(