Hide the label into pdf document for variants

This commit is contained in:
Nicolas 2020-10-02 09:21:44 +02:00
parent b8b9b73714
commit e72fbbfe17

View File

@ -1314,10 +1314,14 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0,
if (!empty($conf->global->MAIN_DOCUMENTS_DESCRIPTION_FIRST)) if (!empty($conf->global->MAIN_DOCUMENTS_DESCRIPTION_FIRST))
{ {
$libelleproduitservice = $desc."\n".$libelleproduitservice; $libelleproduitservice = $desc."\n".$libelleproduitservice;
} else {
if (!empty($conf->global->HIDE_LABEL_VARIANT_PDF)) {
$libelleproduitservice = $desc;
} else { } else {
$libelleproduitservice .= $desc; $libelleproduitservice .= $desc;
} }
} }
}
} else { } else {
$libelleproduitservice .= $desc; $libelleproduitservice .= $desc;
} }