From bbb0fa59cb1c322ebbe2c3c755e1aa95dbf5937b Mon Sep 17 00:00:00 2001 From: Luigi Date: Mon, 3 Jun 2019 14:53:08 -0300 Subject: [PATCH] Condicion de puntos de descarga --- src/js/controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index b5b046c..5a33e91 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -171,7 +171,7 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', idProveedor: $scope.notaPedido.proveedor.COD, idDomicilio: $scope.notaPedido.domicilio.id, idCotizacion: $scope.notaPedido.cotizacion.ID, - idPrecioCondicion: $scope.notaPedido.idPrecioCondicion, + idListaPrecio: $scope.notaPedido.idPrecioCondicion, cotizacion: $scope.notaPedido.cotizacion.VENDEDOR, flete: $scope.notaPedido.flete, fob: $scope.notaPedido.fob, @@ -195,8 +195,8 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl', notaPedidoBusinessService.addArticulos( $scope.notaPedido.articulosNotaPedido, data.data.id, $scope.notaPedido.cotizacion.VENDEDOR); - - if ($scope.notaPedido.notaPedidoPuntoDescarga) { + + if ($scope.notaPedido.notaPedidoPuntoDescarga.length > 0) { notaPedidoBusinessService.addPuntosDescarga(data.data.id, $scope.notaPedido.notaPedidoPuntoDescarga); } -- 1.9.1