Commit 0c2f97ccc8a3c660e0578a97ec4e57a7ef4b2b67
1 parent
d5fb9f082b
Exists in
master
cambio
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -937,7 +937,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
| 937 | 937 | puntosDescarga.forEach(function(el) { |
| 938 | 938 | |
| 939 | 939 | var puntoDescarga = result.filter(function(resultPunto) { |
| 940 | - return resultPunto.id === el.id; | |
| 940 | + return resultPunto.id === el.idPuntoDescarga; | |
| 941 | 941 | }); |
| 942 | 942 | |
| 943 | 943 | if (puntoDescarga.length) { |
| ... | ... | @@ -990,8 +990,8 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
| 990 | 990 | function getLSNotaPedido() { |
| 991 | 991 | var notaPedido = JSON.parse($localStorage.notaPedido || null); |
| 992 | 992 | if (notaPedido) { |
| 993 | - delete $localStorage.notaPedido; | |
| 994 | 993 | setearNotaPedido(notaPedido); |
| 994 | + delete $localStorage.notaPedido; | |
| 995 | 995 | } |
| 996 | 996 | } |
| 997 | 997 |