Commit 22b12d67b62ae4a68a085b6cb927d97e35e9de7e
Exists in
master
and in
1 other branch
Merge branch 'master' into 'develop'
Master See merge request !67
Showing
1 changed file
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,6 +935,7 @@ 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 | 940 | return resultPunto.id === el.idPuntoDescarga; |
| 943 | 941 | }); |
| ... | ... | @@ -999,7 +997,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
| 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:'); |