Commit 1e18bec360b10dcff982994462c1f79675839972

Authored by Eric Fernandez
1 parent 2c4c72388e
Exists in master

arreglo búsqueda de clientes

Showing 1 changed file with 8 additions and 1 deletions   Show diff stats
src/js/controller.js
... ... @@ -361,6 +361,10 @@ angular.module('focaCrearCobranza') .controller('cobranzaController',
361 361 };
362 362  
363 363 $scope.seleccionarCliente = function() {
  364 + if(!$scope.cobranza.cobrador) {
  365 + focaModalService.alert('Ingrese primero cobrador');
  366 + return;
  367 + }
364 368 var parametrosModal = {
365 369 titulo: 'Búsqueda de Clientes',
366 370 query: '/cliente/listar',
... ... @@ -383,7 +387,10 @@ angular.module('focaCrearCobranza') .controller('cobranzaController',
383 387 }
384 388 ],
385 389 tipo: 'POST',
386   - json: {'nombreOCuit': ''}
  390 + json: {
  391 + nombreOCuit: '',
  392 + idVendedor: $scope.cobranza.cobrador.id
  393 + }
387 394 };
388 395 focaModalService.modal(parametrosModal).then(
389 396 function(cliente) {