From c6521dbfea411ce80b1ee7d9eafd7a89b5372bfd Mon Sep 17 00:00:00 2001 From: ATM John BOTELLA Date: Sat, 8 Dec 2018 17:56:03 +0100 Subject: [PATCH] NEW improve pdf desc item visibitity --- htdocs/core/lib/pdf.lib.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/core/lib/pdf.lib.php b/htdocs/core/lib/pdf.lib.php index 4490a59d055..056796032d4 100644 --- a/htdocs/core/lib/pdf.lib.php +++ b/htdocs/core/lib/pdf.lib.php @@ -1347,6 +1347,7 @@ function pdf_getlinedesc($object,$i,$outputlangs,$hideref=0,$hidedesc=0,$issuppl if (! empty($libelleproduitservice) && ! empty($ref_prodserv)) $ref_prodserv .= " - "; } + if(!empty($ref_prodserv) && !empty($conf->global->ADD_HTML_FORMATING_INTO_DESC_DOC)){ $ref_prodserv = ''.$ref_prodserv.''; } $libelleproduitservice=$prefix_prodserv.$ref_prodserv.$libelleproduitservice; // Add an additional description for the category products @@ -1382,7 +1383,11 @@ function pdf_getlinedesc($object,$i,$outputlangs,$hideref=0,$hidedesc=0,$issuppl $period='('.$outputlangs->transnoentitiesnoconv('DateUntil',dol_print_date($object->lines[$i]->date_end, $format, false, $outputlangs)).')'; } //print '>'.$outputlangs->charset_output.','.$period; + if(!empty($conf->global->ADD_HTML_FORMATING_INTO_DESC_DOC)){ + $libelleproduitservice.= ''."__N__ ".$period.''; + }else{ $libelleproduitservice.="__N__".$period; + } //print $libelleproduitservice; }