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

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