Commit 7f3dc9e2462eca99e746a444216fbf5918703387
1 parent
efb31c9217
Exists in
master
demo
Showing
1 changed file
with
2 additions
and
3 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -86,7 +86,7 @@ angular.module('focaCrearNotaPedido') |
86 | 86 | ); |
87 | 87 | var articulosNotaPedido = $scope.articulosTabla; |
88 | 88 | for(var i = 0; i< articulosNotaPedido.length;i++) { |
89 | - articulosNotaPedido[i].edit = undefined; | |
89 | + delete articulosNotaPedido[i].edit; | |
90 | 90 | crearNotaPedidoService |
91 | 91 | .crearArticulosParaNotaPedido(articulosNotaPedido[i]).then( |
92 | 92 | function() { |
... | ... | @@ -103,9 +103,8 @@ angular.module('focaCrearNotaPedido') |
103 | 103 | $scope.notaPedido.costoUnitarioKmFlete = ''; |
104 | 104 | $scope.notaPedido.vendedor.nombre = ''; |
105 | 105 | $scope.notaPedido.cliente.nombre = ''; |
106 | - $scope.domicilio.dom = ''; | |
106 | + $scope.domicilio = ''; | |
107 | 107 | $scope.notaPedido.flete = 0; |
108 | - focaModalService.alert('Nota de pedido creada'); | |
109 | 108 | }; |
110 | 109 | $scope.siguienteTab = function() { |
111 | 110 | $scope.active = 1; |