Commit b069b5dd11a44cced0e3ba60c92f6454d713591e
Exists in
master
Merge remote-tracking branch 'upstream/master'
Showing
1 changed file
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: 'Símbolo' | |
741 | + } | |
742 | + ], | |
743 | + size: 'md' | |
744 | + }; | |
745 | + focaModalService.modal(parametrosModal).then( | |
739 | 746 | function(moneda) { |
740 | 747 | $scope.abrirModalCotizacion(moneda); |
741 | 748 | }, function() { |