|
@@ -1932,8 +1932,11 @@ class pdf_eratosthene extends ModelePDFCommandes
|
|
|
//var_dump($object); die();
|
|
|
//var_dump($object->array_options['options_cgv_cpv']); die();
|
|
|
$complement = [];
|
|
|
- if (!empty($object->array_options['options_cgv_cpv']))
|
|
|
- $complement[] = '<h3>'.$outputlangs->transnoentities("DocumentMoreInfoCGP")."</h3>\r\n".$object->array_options['options_cgv_cpv'];
|
|
|
+ if (!empty($object->array_options['options_cgv_cpv'])) {
|
|
|
+ if (!empty($conf->global->MMIDOCUMENT_CGP_TITLE))
|
|
|
+ $complement[] = '<h3>'.$outputlangs->transnoentities("DocumentMoreInfoCGP")."</h3>";
|
|
|
+ $complement[] = $object->array_options['options_cgv_cpv'];
|
|
|
+ }
|
|
|
if (!empty($object->array_options['options_propal_decennale'])) {
|
|
|
if (!empty($conf->global->MMIPROJECT_DECENNALE_TITLE))
|
|
|
$complement[] = '<h3>'.$outputlangs->transnoentities("DocumentMoreInfoDecennale")."</h3>";
|
|
@@ -1976,9 +1979,11 @@ class pdf_eratosthene extends ModelePDFCommandes
|
|
|
$pdf->SetFont('', '', $default_font_size - 2);
|
|
|
|
|
|
// Titre
|
|
|
- $pdf->SetXY($posx, $tab_top);
|
|
|
- $tab_titre = 4;
|
|
|
- $pdf->WriteHTMLCell($largcol, $tab_titre, $posx, $posy+$marg_top, '<b>'.$outputlangs->transnoentities("DocumentMoreInfo").'</b>', 0);
|
|
|
+ if (!empty($conf->global->DOCUMENT_COMPLEMENT_TITLE)) {
|
|
|
+ $pdf->SetXY($posx, $tab_top);
|
|
|
+ $tab_titre = 4;
|
|
|
+ $pdf->WriteHTMLCell($largcol, $tab_titre, $posx, $posy+$marg_top, '<b>'.$outputlangs->transnoentities("DocumentMoreInfo").'</b>', 0);
|
|
|
+ }
|
|
|
// Texte
|
|
|
$pdf->SetXY($posx, $tab_top + $tab_titre);
|
|
|
$tab_text = $this->heightComplement($pdf, $text, $default_font_size);
|