Commit c63456a7759cf639b904b90c0374a98a514d0186

Authored by Marcelo Puebla
1 parent 7376fa31dc
Exists in master

arreglo en seteo de cabecera

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/js/controller.js
... ... @@ -697,8 +697,8 @@ angular.module('focaCrearRemito').controller('remitoController',
697 697 for (var i = 0; i < precioCondicion.plazoPago.length; i++) {
698 698 plazosConcat += precioCondicion.plazoPago[i].dias + ', ';
699 699 }
700   - var plazosConcat = plazosConcat.substring(0, plazosConcat.length - 2);
701   - cabecera = $filter('rellenarDigitos')(precioCondicion.id, 4) +
  700 + plazosConcat = plazosConcat.substring(0, plazosConcat.length - 2);
  701 + cabecera = $filter('rellenarDigitos')(parseInt(precioCondicion.listaPrecio.ID), 4) +
702 702 ' - ' + precioCondicion.listaPrecio.DES + ' ' + plazosConcat.trim();
703 703 } else { //Cuando se ingresan los plazos manualmente
704 704 $scope.remito.idPrecioCondicion = 0;