Commit 8df1cc96296ad4c5cb85e1c7128d127f2949748a

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

cambio nombre variable

Showing 1 changed file with 10 additions and 6 deletions   Show diff stats
src/js/controller.js
... ... @@ -297,9 +297,9 @@ angular.module('focaCrearRemito').controller('remitoController',
297 297  
298 298 focaBotoneraLateralService.startGuardar();
299 299 $scope.saveLoading = true;
300   - var ar = JSON.parse($localStorage.rutas);
301   - removeItemFromArr( ar, 'venta-remito/crear' );
302   - $localStorage.rutas = JSON.stringify(ar);
  300 + var rutaJson = JSON.parse($localStorage.rutas);
  301 + removeItemFromArr( rutaJson, 'venta-remito/crear' );
  302 + $localStorage.rutas = JSON.stringify(rutaJson);
303 303  
304 304 var save = {
305 305 remito: {
... ... @@ -1093,9 +1093,9 @@ angular.module('focaCrearRemito').controller('remitoController',
1093 1093 ).then(function (data) {
1094 1094 if (data) {
1095 1095 $location.path('/');
1096   - var ar = JSON.parse($localStorage.rutas);
1097   - removeItemFromArr( ar, 'venta-remito/crear' );
1098   - $localStorage.rutas = JSON.stringify(ar);
  1096 + var rutaJson = JSON.parse($localStorage.rutas);
  1097 + removeItemFromArr( rutaJson, 'venta-remito/crear' );
  1098 + $localStorage.rutas = JSON.stringify(rutaJson);
1099 1099 }
1100 1100 });
1101 1101 } else {
... ... @@ -1282,6 +1282,10 @@ angular.module('focaCrearRemito').controller('remitoController',
1282 1282 nombre: numeroRemito + '.pdf',
1283 1283 url: '/remito/comprobante',
1284 1284 },
  1285 + descarga2: {
  1286 + nombre: numeroRemito + '.pdf',
  1287 + url: '/remito/comprobanteSV',
  1288 + },
1285 1289 envio: {
1286 1290 mailCliente: cliente.MAIL,
1287 1291 url: '/remito/mail',