Commit 3fda033a8dae97acf331fab010a637c0655d349d

Authored by Eric Fernandez
Exists in master and in 1 other branch develop

Merge branch 'master' into 'develop'

Master

See merge request !116
src/js/controller.js
... ... @@ -260,8 +260,7 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl',
260 260 };
261 261  
262 262 $scope.seleccionarProductos = function () {
263   -
264   - if ($scope.notaPedido.idListaPrecio === undefined) {
  263 + if ($scope.idLista === undefined) {
265 264 focaModalService.alert('Primero seleccione una lista de precio y condición');
266 265 return;
267 266 } else if (!validarNotaRemitada()) {
... ... @@ -275,7 +274,7 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl',
275 274 controller: 'modalBusquedaProductosCtrl',
276 275 resolve: {
277 276 parametroProducto: {
278   - idLista: $scope.notaPedido.idListaPrecio,
  277 + idLista: $scope.idLista,
279 278 cotizacion: $scope.notaPedido.cotizacion.VENDEDOR,
280 279 simbolo: $scope.notaPedido.cotizacion.moneda.SIMBOLO
281 280 }
... ... @@ -684,11 +683,11 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl',
684 683 }
685 684 cabecera = 'Ingreso manual ' + plazosConcat.trim();
686 685 }
687   -
688   - $filter('filter')($scope.cabeceras,
689   - { label: 'Precios y Condiciones' })[0].valor = cabecera;
690   -
691   - $scope.notaPedido.precioCondicion = precioCondicion;
  686 + $scope.cabeceras.push({
  687 + label: 'Precios y Condiciones:',
  688 + valor: $scope.idLista + ' - ' + precioCondicion.listaPrecio.DES + ' ' +
  689 + notaPedidoBusinessService.plazoToString(precioCondicion.plazoPago)
  690 + });
692 691  
693 692 $filter('filter')($scope.botonera,
694 693 { label: 'Precios y Condiciones' })[0].checked = true;