Commit c4b5a27722b72baa21f2852cb8c0dc45326f8492

Authored by Marcelo Puebla
1 parent 0fc4b5f3ea
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
... ... @@ -656,8 +656,8 @@ angular.module('focaCrearNotaPedido').controller('notaPedidoCtrl',
656 656 for (var i = 0; i < precioCondicion.plazoPago.length; i++) {
657 657 plazosConcat += precioCondicion.plazoPago[i].dias + ', ';
658 658 }
659   - var plazosConcat = plazosConcat.substring(0, plazosConcat.length - 2);
660   - cabecera = $filter('rellenarDigitos')(precioCondicion.listaPrecio.ID, 4) +
  659 + plazosConcat = plazosConcat.substring(0, plazosConcat.length - 2);
  660 + cabecera = $filter('rellenarDigitos')(parseInt(precioCondicion.listaPrecio.ID), 4) +
661 661 ' - ' + precioCondicion.listaPrecio.DES + ' ' + plazosConcat.trim();
662 662 } else { //Cuando se ingresan los plazos manualmente
663 663 $scope.notaPedido.idPrecioCondicion = 0;