Commit 6d24c72f1624841bb2b57ec8bc5ed8d009bc2623
1 parent
116fa8f424
Exists in
master
Eliminar forEach de articulos
Showing
2 changed files
with
1 additions
and
7 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -311,11 +311,6 @@ angular.module('focaCrearRemito').controller('remitoController', |
| 311 | 311 | return; |
| 312 | 312 | } |
| 313 | 313 | |
| 314 | - $scope.remito.articulosRemito.forEach(function (articulo) { | |
| 315 | - delete articulo.tmpPrecio; | |
| 316 | - delete articulo.tmpCantidad; | |
| 317 | - }); | |
| 318 | - | |
| 319 | 314 | focaBotoneraLateralService.startGuardar(); |
| 320 | 315 | $scope.saveLoading = true; |
| 321 | 316 | var save = { |
src/views/remito.html
| ... | ... | @@ -122,8 +122,7 @@ |
| 122 | 122 | </button> |
| 123 | 123 | <button |
| 124 | 124 | class="btn btn-outline-light" |
| 125 | - ng-click="editarArticulo(13, articulo, 'cantidad'); | |
| 126 | - editarArticulo(13, articulo, 'precio')" | |
| 125 | + ng-click="editarArticulo(13, articulo);" | |
| 127 | 126 | ng-show="articulo.editCantidad || articulo.editPrecio" |
| 128 | 127 | > |
| 129 | 128 | <i class="fa fa-save"></i> |