Commit 959870da9c00dc0148380e7dd08ab6cbafd08385

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'master'

Master

See merge request !29
src/js/controller.js
... ... @@ -231,7 +231,15 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
231 231 templateUrl: 'foca-modal-nota-pedido.html',
232 232 controller: 'focaModalNotaPedidoController',
233 233 size: 'lg',
234   - resolve: {usadoPor: function() {return 'notaPedido';}}
  234 + resolve: {
  235 + usadoPor: function() {return 'notaPedido';},
  236 + idVendedor: function() {
  237 + if(APP === 'distribuidor')
  238 + return $scope.notaPedido.vendedor.CodVen;
  239 + else
  240 + return null;
  241 + }
  242 + }
235 243 }
236 244 );
237 245 modalInstance.result.then(