Commit c32953f82744393dc8ec154e9bd4ef2fd993110a
1 parent
af671d9afd
Exists in
master
and in
1 other branch
Borrada variable.
Showing
1 changed file
with
1 additions
and
3 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -172,7 +172,7 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', |
172 | 172 | idProveedor: $scope.notaPedido.proveedor.COD, |
173 | 173 | idDomicilio: $scope.notaPedido.domicilio.id, |
174 | 174 | idCotizacion: $scope.notaPedido.cotizacion.ID, |
175 | - idListaPrecio: $scope.notaPedido.idPrecioCondicion, | |
175 | + idListaPrecio: $scope.idLista, | |
176 | 176 | cotizacion: $scope.notaPedido.cotizacion.VENDEDOR, |
177 | 177 | flete: $scope.notaPedido.flete, |
178 | 178 | fob: $scope.notaPedido.fob, |
... | ... | @@ -663,7 +663,6 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', |
663 | 663 | if (!Array.isArray(precioCondicion)) { |
664 | 664 | $scope.notaPedido.notaPedidoPlazo = precioCondicion.plazoPago; |
665 | 665 | $scope.notaPedido.precioCondicion = precioCondicion; |
666 | - $scope.notaPedido.idPrecioCondicion = precioCondicion.listaPrecio.ID; | |
667 | 666 | $scope.notaPedido.cliente.MOD = precioCondicion.listaPrecio.ID; |
668 | 667 | $scope.idLista = parseInt(precioCondicion.listaPrecio.ID) ? |
669 | 668 | parseInt(precioCondicion.listaPrecio.ID) : -1; |
... | ... | @@ -675,7 +674,6 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', |
675 | 674 | ' - ' + precioCondicion.listaPrecio.DES + |
676 | 675 | ' ' + plazosConcat.trim(); |
677 | 676 | } else { //Cuando se ingresan los plazos manualmente |
678 | - $scope.notaPedido.idPrecioCondicion = 0; | |
679 | 677 | //-1, el modal productos busca todos los productos |
680 | 678 | $scope.idLista = -1; |
681 | 679 | $scope.notaPedido.notaPedidoPlazo = precioCondicion; |