Merge pull request #8931 from ruistrecht-alt/MAIN_DOCUMENTS_DESCRIPTION_FIRST

NEW Add hidden option MAIN_DOCUMENTS_DESCRIPTION_FIRST
This commit is contained in:
Laurent Destailleur 2018-06-29 20:04:24 +02:00 committed by GitHub
commit b1d94af439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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