Commit 113f641f79a271dde341045fd4734cf44eb60dd5
1 parent
60be8ea2bc
Exists in
master
and in
1 other branch
Borrar variables temporales
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -304,6 +304,12 @@ angular.module('focaCrearRemito').controller('remitoController', |
| 304 | 304 | focaModalService.alert('Debe cargar al menos un articulo'); |
| 305 | 305 | return; |
| 306 | 306 | } |
| 307 | + | |
| 308 | + $scope.remito.articulosRemito.forEach(function (articulo) { | |
| 309 | + delete articulo.tmpPrecio; | |
| 310 | + delete articulo.tmpCantidad; | |
| 311 | + }); | |
| 312 | + | |
| 307 | 313 | focaBotoneraLateralService.startGuardar(); |
| 308 | 314 | $scope.saveLoading = true; |
| 309 | 315 | var save = { |