Commit 3dcdfd0be96a38c5ae80868e2bbeb448588ccfe0

Authored by Eric Fernandez
1 parent 672347a71b
Exists in master

quito modal moneda

Showing 1 changed file with 16 additions and 9 deletions   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() {