Commit 62999119d6df30774f6a383c37dc9863f1be9b63

Authored by Eric Fernandez
1 parent 6909b1f196
Exists in master

quito modal moneda

Showing 1 changed file with 16 additions and 9 deletions   Show diff stats
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: 'simbolo'
  703 + }
  704 + ],
  705 + size: 'md'
  706 + };
  707 + focaModalService.modal(parametrosModal).result.then(
701 708 function(moneda) {
702 709 $scope.abrirModalCotizacion(moneda);
703 710 }, function() {