Commit c266c16b6ad60da9e721caef0654b6050fbd2c7a

Authored by Eric Fernandez
1 parent 9e6f3c0c1c
Exists in master and in 1 other branch develop

quito modal proveedor

Showing 1 changed file with 23 additions and 12 deletions   Show diff stats
src/js/controller.js
... ... @@ -515,20 +515,31 @@ angular.module('focaCrearRemito') .controller('remitoController',
515 515  
516 516 $scope.seleccionarProveedor = function() {
517 517 if(varlidarRemitoFacturado()) {
518   - var modalInstance = $uibModal.open(
519   - {
520   - ariaLabelledBy: 'Busqueda de Proveedor',
521   - templateUrl: 'modal-proveedor.html',
522   - controller: 'focaModalProveedorCtrl',
523   - size: 'lg',
524   - resolve: {
525   - transportista: function() {
526   - return false;
  518 + var parametrosModal = {
  519 + titulo: 'Búsqueda de Proveedor',
  520 + query: '/proveedor',
  521 + columnas: [
  522 + {
  523 + nombre: 'Código',
  524 + propiedad: 'COD',
  525 + filtro: {
  526 + nombre: 'rellenarDigitos',
  527 + parametro: 5
527 528 }
  529 + },
  530 + {
  531 + nombre: 'Nombre',
  532 + propiedad: 'NOM'
  533 + },
  534 + {
  535 + nombre: 'CUIT',
  536 + propiedad: 'CUIT'
528 537 }
529   - }
530   - );
531   - modalInstance.result.then(
  538 + ],
  539 + tipo: 'POST',
  540 + json: {razonCuitCod: ''}
  541 + };
  542 + focaModalService.modal(parametrosModal).then(
532 543 function(proveedor) {
533 544 $scope.remito.idProveedor = proveedor.COD;
534 545 $scope.$broadcast('addCabecera',{