Commit ba0235a80b2926ab93decd1045006a888d59fc04

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'develop'

Master

See merge request !96
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 }