Commit b7f1772add741098225a9650001d56ecd7ba1ca1

Authored by Luigi
1 parent dc8ce4a6c1
Exists in master and in 1 other branch develop

Elimino variables temporales

Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
src/js/controller.js
... ... @@ -158,6 +158,11 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl',
158 158 return;
159 159 }
160 160  
  161 + $scope.notaPedido.articulosNotaPedido.forEach(function (articulo) {
  162 + delete articulo.tmpPrecio;
  163 + delete articulo.tmpCantidad;
  164 + });
  165 +
161 166 focaBotoneraLateralService.startGuardar();
162 167 $scope.saveLoading = true;
163 168 var notaPedido = {