Commit 5fefcd803ba481a0d2e4427b42d9f8b41f8be3f3

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

Merge branch 'master' into 'master'

Master(efernandez)

See merge request !39
... ... @@ -43,11 +43,6 @@ gulp.task('uglify', ['templates'], function() {
43 43 gulp.dest(paths.tmp),
44 44 rename('foca-crear-nota-pedido.min.js'),
45 45 uglify(),
46   - replace('"ngRoute","ui.bootstrap","focaModalVendedores","focaBusquedaProductos",'+
47   - '"focaModalProveedor","focaBusquedaCliente","focaModalPrecioCondicion",'+
48   - '"focaModalFlete","focaDirectivas","focaModal","focaModalDomicilio",'+
49   - '"focaModalMoneda","focaModalCotizacion","focaSeguimiento"'+
50   - ',"focaBotoneraLateral","angular-ladda","cordovaGeolocationModule"', ''),
51 46 gulp.dest(paths.dist)
52 47 ]
53 48 );
1   -angular.module('focaCrearNotaPedido', [
2   - 'ngRoute',
3   - 'ui.bootstrap',
4   - 'focaModalVendedores',
5   - 'focaBusquedaProductos',
6   - 'focaModalProveedor',
7   - 'focaBusquedaCliente',
8   - 'focaModalPrecioCondicion',
9   - 'focaModalFlete',
10   - 'focaDirectivas',
11   - 'focaModal',
12   - 'focaModalDomicilio',
13   - 'focaModalMoneda',
14   - 'focaModalCotizacion',
15   - 'focaSeguimiento',
16   - 'focaBotoneraLateral',
17   - 'angular-ladda',
18   - 'cordovaGeolocationModule'
19   -]);
  1 +angular.module('focaCrearNotaPedido', []);
src/js/controller.js
... ... @@ -479,20 +479,31 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl',
479 479  
480 480 $scope.seleccionarProveedor = function() {
481 481 if(validarNotaRemitada()) {
482   - var modalInstance = $uibModal.open(
483   - {
484   - ariaLabelledBy: 'Busqueda de Proveedor',
485   - templateUrl: 'modal-proveedor.html',
486   - controller: 'focaModalProveedorCtrl',
487   - size: 'lg',
488   - resolve: {
489   - transportista: function() {
490   - return false;
  482 + var parametrosModal = {
  483 + titulo: 'Búsqueda de Proveedor',
  484 + query: '/proveedor',
  485 + columnas: [
  486 + {
  487 + nombre: 'Código',
  488 + propiedad: 'COD',
  489 + filtro: {
  490 + nombre: 'rellenarDigitos',
  491 + parametro: 5
491 492 }
  493 + },
  494 + {
  495 + nombre: 'Nombre',
  496 + propiedad: 'NOM'
  497 + },
  498 + {
  499 + nombre: 'CUIT',
  500 + propiedad: 'CUIT'
492 501 }
493   - }
494   - );
495   - modalInstance.result.then(
  502 + ],
  503 + tipo: 'POST',
  504 + json: {razonCuitCod: ''}
  505 + };
  506 + focaModalService.modal(parametrosModal).then(
496 507 function(proveedor) {
497 508 $scope.notaPedido.proveedor = proveedor;
498 509 $scope.$broadcast('addCabecera', {