Commit 709e9364cdd6782d04d4235c10b816d0f99fbc0f

Authored by Luigi
1 parent 6c115ee53c
Exists in master

arreglo precio

Showing 1 changed file with 7 additions and 5 deletions   Show diff stats
src/js/controller.js
... ... @@ -260,7 +260,6 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl',
260 260 };
261 261  
262 262 $scope.seleccionarProductos = function () {
263   -
264 263 if ($scope.notaPedido.idListaPrecio === undefined) {
265 264 focaModalService.alert('Primero seleccione una lista de precio y condición');
266 265 return;
... ... @@ -685,10 +684,13 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl',
685 684 cabecera = 'Ingreso manual ' + plazosConcat.trim();
686 685 }
687 686  
688   - $filter('filter')($scope.cabeceras,
689   - { label: 'Precios y Condiciones' })[0].valor = cabecera;
690   -
691   - $scope.notaPedido.precioCondicion = precioCondicion;
  687 + $scope.cabeceras.push({
  688 + label: 'Precios y Condiciones:',
  689 + valor: parseInt(precioCondicion.listaPrecio.ID) +
  690 + ' - ' + precioCondicion.listaPrecio.DES + ' ' +
  691 + notaPedidoBusinessService.plazoToString(precioCondicion.plazoPago)
  692 + });
  693 + $scope.notaPedido.idListaPrecio = parseInt(precioCondicion.listaPrecio.ID);
692 694  
693 695 $filter('filter')($scope.botonera,
694 696 { label: 'Precios y Condiciones' })[0].checked = true;