Commit d5fb9f082bc5341d5c1836270dabc8985991fef3
1 parent
87c3fa91fd
Exists in
master
and in
1 other branch
Auto stash before merge of "master" and "upstream/develop"
Showing
1 changed file
with
4 additions
and
6 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -894,9 +894,6 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
894 | 894 | cabeceras.push(cabeceraBomba); |
895 | 895 | } |
896 | 896 | |
897 | - notaPedidoBusinessService.calcularArticulos($scope.notaPedido.articulosNotaPedido, | |
898 | - notaPedido.cotizacion.VENDEDOR); | |
899 | - | |
900 | 897 | if (notaPedido.idPrecioCondicion > 0) { |
901 | 898 | $scope.idLista = notaPedido.precioCondicion.idListaPrecio; |
902 | 899 | } else { |
... | ... | @@ -938,8 +935,9 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
938 | 935 | var result = []; |
939 | 936 | |
940 | 937 | puntosDescarga.forEach(function(el) { |
938 | + | |
941 | 939 | var puntoDescarga = result.filter(function(resultPunto) { |
942 | - return resultPunto.id === el.idPuntoDescarga; | |
940 | + return resultPunto.id === el.id; | |
943 | 941 | }); |
944 | 942 | |
945 | 943 | if (puntoDescarga.length) { |
... | ... | @@ -992,14 +990,14 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
992 | 990 | function getLSNotaPedido() { |
993 | 991 | var notaPedido = JSON.parse($localStorage.notaPedido || null); |
994 | 992 | if (notaPedido) { |
995 | - setearNotaPedido(notaPedido); | |
996 | 993 | delete $localStorage.notaPedido; |
994 | + setearNotaPedido(notaPedido); | |
997 | 995 | } |
998 | 996 | } |
999 | 997 | |
1000 | 998 | function deleteCliente() { |
1001 | 999 | delete $scope.notaPedido.domicilioStamp; |
1002 | - delete $scope.notaPedido.notaPedidoPuntoDescarga; | |
1000 | + delete $scope.notaPedido.notaPedidoPuntosDescarga; | |
1003 | 1001 | $scope.notaPedido.domicilio = {dom: ''}; |
1004 | 1002 | $scope.notaPedido.cliente = {}; |
1005 | 1003 | $scope.$broadcast('removeCabecera', 'Cliente:'); |