Commit 7358fd791e3f09712ad5310ec6102193d10c7f7c

Authored by Eric Fernandez
1 parent 2349f4fe58
Exists in master

quito modal monedas

Showing 1 changed file with 16 additions and 9 deletions   Show diff stats
src/js/controller.js
... ... @@ -727,15 +727,22 @@ angular.module('focaCrearRemito') .controller('remitoController',
727 727  
728 728 $scope.seleccionarMoneda = function() {
729 729 if(varlidarRemitoFacturado()) {
730   - var modalInstance = $uibModal.open(
731   - {
732   - ariaLabelledBy: 'Busqueda de Moneda',
733   - templateUrl: 'modal-moneda.html',
734   - controller: 'focaModalMonedaController',
735   - size: 'lg'
736   - }
737   - );
738   - modalInstance.result.then(
  730 + var parametrosModal = {
  731 + titulo: 'Búsqueda de monedas',
  732 + query: '/moneda',
  733 + columnas: [
  734 + {
  735 + propiedad: 'DETALLE',
  736 + nombre: 'Nombre'
  737 + },
  738 + {
  739 + propiedad: 'SIMBOLO',
  740 + nombre: 'simbolo'
  741 + }
  742 + ],
  743 + size: 'md'
  744 + };
  745 + focaModalService.modal(parametrosModal).then(
739 746 function(moneda) {
740 747 $scope.abrirModalCotizacion(moneda);
741 748 }, function() {