Commit c5dd54f9e4212d474126ddf6d7032ea3a0306960

Authored by Benjamin Rodriguez
1 parent cb5724bba4
Exists in master and in 2 other branches develop, lab

cambio nombre variable

Showing 1 changed file with 11 additions and 13 deletions   Show diff stats
src/js/controller.js
... ... @@ -48,7 +48,6 @@ angular.module('focaCrearRemito').controller('remitoController',
48 48 });
49 49  
50 50 init();
51   -
52 51 }
53 52  
54 53 function init() {
... ... @@ -290,15 +289,14 @@ angular.module('focaCrearRemito').controller('remitoController',
290 289 //validacion por domicilio y por plazo pago
291 290 $scope.crearRemito = function () {
292 291  
293   - if (!remitoBusinessService.validarRemito($scope.remito, $scope.articulosFiltro()))
294   - {
  292 + if (!remitoBusinessService.validarRemito($scope.remito, $scope.articulosFiltro())) {
295 293 return;
296 294 }
297 295  
298 296 focaBotoneraLateralService.startGuardar();
299 297 $scope.saveLoading = true;
300 298 var rutaJson = JSON.parse($localStorage.rutas);
301   - removeItemFromArr( rutaJson, 'venta-remito/crear' );
  299 + removeItemFromArr(rutaJson, 'venta-remito/crear');
302 300 $localStorage.rutas = JSON.stringify(rutaJson);
303 301  
304 302 var save = {
... ... @@ -878,7 +876,7 @@ angular.module('focaCrearRemito').controller('remitoController',
878 876 cotizacionPArgentino.moneda = moneda;
879 877  
880 878 actualizarCabeceraMoneda(cotizacionPArgentino);
881   - $filter('filter')($scope.botonera,
  879 + $filter('filter')($scope.botonera,
882 880 { label: 'Moneda' })[0].checked = true;
883 881 $scope.remito.cotizacion = cotizacionPArgentino;
884 882 });
... ... @@ -916,7 +914,7 @@ angular.module('focaCrearRemito').controller('remitoController',
916 914 cotizacion.moneda = moneda;
917 915 $scope.remitoIsDirty = true;
918 916 actualizarCabeceraMoneda(cotizacion);
919   - $filter('filter')($scope.botonera,
  917 + $filter('filter')($scope.botonera,
920 918 { label: 'Moneda' })[0].checked = true;
921 919 $scope.remito.cotizacion = cotizacion;
922 920 }, function () {
... ... @@ -1072,11 +1070,11 @@ angular.module('focaCrearRemito').controller('remitoController',
1072 1070 }
1073 1071 }
1074 1072  
1075   - function removeItemFromArr ( arr, item ) {
1076   - var i = arr.indexOf( item );
1077   -
1078   - if ( i !== -1 ) {
1079   - arr.splice( i, 1 );
  1073 + function removeItemFromArr(arr, item) {
  1074 + var i = arr.indexOf(item);
  1075 +
  1076 + if (i !== -1) {
  1077 + arr.splice(i, 1);
1080 1078 }
1081 1079 }
1082 1080  
... ... @@ -1094,7 +1092,7 @@ angular.module('focaCrearRemito').controller('remitoController',
1094 1092 if (data) {
1095 1093 $location.path('/');
1096 1094 var rutaJson = JSON.parse($localStorage.rutas);
1097   - removeItemFromArr( rutaJson, 'venta-remito/crear' );
  1095 + removeItemFromArr(rutaJson, 'venta-remito/crear');
1098 1096 $localStorage.rutas = JSON.stringify(rutaJson);
1099 1097 }
1100 1098 });
... ... @@ -1282,7 +1280,7 @@ angular.module('focaCrearRemito').controller('remitoController',
1282 1280 nombre: numeroRemito + '.pdf',
1283 1281 url: '/remito/comprobante',
1284 1282 },
1285   - descarga2: {
  1283 + descargaSinValorizar: {
1286 1284 nombre: numeroRemito + '.pdf',
1287 1285 url: '/remito/comprobanteSV',
1288 1286 },