Commit e5a309052677c5c2a492da47d7c5534c4241942e

Authored by Marcelo Puebla
1 parent d7bab3eb69
Exists in master

Cambio en envio de parametros.

Showing 1 changed file with 7 additions and 5 deletions   Show diff stats
src/js/controller.js
... ... @@ -531,11 +531,13 @@ angular.module('focaCrearRemito').controller('remitoController',
531 531 templateUrl: 'foca-busqueda-cliente-modal.html',
532 532 controller: 'focaBusquedaClienteModalController',
533 533 resolve: {
534   - vendedor: function () { return null; },
535   - cobrador: function () { return null; },
536   - searchText: function () {
537   - return $scope.cliente ? $scope.cliente.nom : '';
538   - }
  534 + parametros: function () {
  535 + return {
  536 + vendedor: $scope.idVendedor,
  537 + cobrador: null,
  538 + searchText: $scope.cliente ? $scope.cliente.nom : ''
  539 + };
  540 + },
539 541 },
540 542 size: 'lg'
541 543 }