Commit bbb0fa59cb1c322ebbe2c3c755e1aa95dbf5937b

Authored by Luigi
1 parent 39d9e5d440
Exists in master and in 1 other branch develop

Condicion de puntos de descarga

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
src/js/controller.js
... ... @@ -171,7 +171,7 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl',
171 171 idProveedor: $scope.notaPedido.proveedor.COD,
172 172 idDomicilio: $scope.notaPedido.domicilio.id,
173 173 idCotizacion: $scope.notaPedido.cotizacion.ID,
174   - idPrecioCondicion: $scope.notaPedido.idPrecioCondicion,
  174 + idListaPrecio: $scope.notaPedido.idPrecioCondicion,
175 175 cotizacion: $scope.notaPedido.cotizacion.VENDEDOR,
176 176 flete: $scope.notaPedido.flete,
177 177 fob: $scope.notaPedido.fob,
... ... @@ -195,8 +195,8 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl',
195 195 notaPedidoBusinessService.addArticulos(
196 196 $scope.notaPedido.articulosNotaPedido,
197 197 data.data.id, $scope.notaPedido.cotizacion.VENDEDOR);
198   -
199   - if ($scope.notaPedido.notaPedidoPuntoDescarga) {
  198 +
  199 + if ($scope.notaPedido.notaPedidoPuntoDescarga.length > 0) {
200 200 notaPedidoBusinessService.addPuntosDescarga(data.data.id,
201 201 $scope.notaPedido.notaPedidoPuntoDescarga);
202 202 }