Commit 34f5492b571ad50451b582979059facd7aca1e0c
1 parent
62374fe31a
Exists in
master
envio codigo vendedor a modal nota pedido
Showing
1 changed file
with
9 additions
and
1 deletions
Show diff stats
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( |