Commit 588424455142234b4aca00d7d68ab4bd741aa552
Exists in
master
Merge branch 'master' into 'master'
Master(efernandez) See merge request !42
Showing
1 changed file
Show diff stats
src/js/controller.js
... | ... | @@ -426,15 +426,22 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', |
426 | 426 | }; |
427 | 427 | |
428 | 428 | $scope.seleccionarMoneda = function() { |
429 | - var modalInstance = $uibModal.open( | |
430 | - { | |
431 | - ariaLabelledBy: 'Busqueda de Moneda', | |
432 | - templateUrl: 'modal-moneda.html', | |
433 | - controller: 'focaModalMonedaController', | |
434 | - size: 'lg' | |
435 | - } | |
436 | - ); | |
437 | - modalInstance.result.then( | |
429 | + var parametrosModal = { | |
430 | + titulo: 'Búsqueda de monedas', | |
431 | + query: '/moneda', | |
432 | + columnas: [ | |
433 | + { | |
434 | + propiedad: 'DETALLE', | |
435 | + nombre: 'Nombre' | |
436 | + }, | |
437 | + { | |
438 | + propiedad: 'SIMBOLO', | |
439 | + nombre: 'simbolo' | |
440 | + } | |
441 | + ], | |
442 | + size: 'md' | |
443 | + }; | |
444 | + focaModalService.modal(parametrosModal).then( | |
438 | 445 | function(moneda) { |
439 | 446 | $scope.seleccionarCotizacion(moneda); |
440 | 447 | }, function() { |