Commit 3455ab80618e37a291ae9b1b4cb11ccd99960dae
1 parent
b1ef254363
Exists in
master
arreglos identacion y variable
Showing
1 changed file
with
2 additions
and
10 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -132,16 +132,8 @@ angular.module('focaCrearCobranza').controller('cobranzaController', |
132 | 132 | focaBotoneraLateralService.startGuardar(); |
133 | 133 | $scope.saveLoading = true; |
134 | 134 | var rutaJson = JSON.parse($localStorage.rutas); |
135 | - function removeItemFromArr ( arr, item ) { | |
136 | - var i = arr.indexOf( item ); | |
137 | - | |
138 | - if ( i !== -1 ) { | |
139 | - arr.splice( i, 1 ); | |
140 | - } | |
141 | - } | |
142 | - | |
143 | - removeItemFromArr( rutaJson, 'cobranza/crear' ); | |
144 | - $localStorage.rutas = JSON.stringify(rutaJson); | |
135 | + removeItemFromArr( rutaJson, 'cobranza/crear' ); | |
136 | + $localStorage.rutas = JSON.stringify(rutaJson); | |
145 | 137 | for (var i = 0; i < $scope.cobranza.facturas.length; i++) { |
146 | 138 | var cuerpoFactura = { |
147 | 139 | CYV: 'V', |