Commit 9cac93d3e3079879d7f09dfa14138066e7890c76

Authored by Jose Pinto
Exists in master and in 1 other branch develop

Merge branch 'master' into 'master'

Master(efernandez)

See merge request !34
src/js/controller.js
... ... @@ -689,15 +689,22 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
689 689  
690 690 $scope.seleccionarMoneda = function() {
691 691 if(validarNotaRemitada()) {
692   - var modalInstance = $uibModal.open(
693   - {
694   - ariaLabelledBy: 'Busqueda de Moneda',
695   - templateUrl: 'modal-moneda.html',
696   - controller: 'focaModalMonedaController',
697   - size: 'lg'
698   - }
699   - );
700   - modalInstance.result.then(
  692 + var parametrosModal = {
  693 + titulo: 'Búsqueda de monedas',
  694 + query: '/moneda',
  695 + columnas: [
  696 + {
  697 + propiedad: 'DETALLE',
  698 + nombre: 'Nombre'
  699 + },
  700 + {
  701 + propiedad: 'SIMBOLO',
  702 + nombre: 'Símbolo'
  703 + }
  704 + ],
  705 + size: 'md'
  706 + };
  707 + focaModalService.modal(parametrosModal).then(
701 708 function(moneda) {
702 709 $scope.abrirModalCotizacion(moneda);
703 710 }, function() {