Merge pull request #14891 from inoveaconseil/Newhidelabelvariant
NEW hide label in pdf for variants
This commit is contained in:
commit
00cb3277ec
@ -11,6 +11,7 @@
|
|||||||
* Copyright (C) 2014 Teddy Andreotti <125155@supinfo.com>
|
* Copyright (C) 2014 Teddy Andreotti <125155@supinfo.com>
|
||||||
* Copyright (C) 2015-2016 Marcos García <marcosgdf@gmail.com>
|
* Copyright (C) 2015-2016 Marcos García <marcosgdf@gmail.com>
|
||||||
* Copyright (C) 2019 Lenin Rivas <lenin.rivas@servcom-it.com>
|
* Copyright (C) 2019 Lenin Rivas <lenin.rivas@servcom-it.com>
|
||||||
|
* Copyright (C) 2020 Nicolas ZABOURI <info@inovea-conseil.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -1314,10 +1315,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) && $prodser->isVariant()) {
|
||||||
|
$libelleproduitservice = $desc;
|
||||||
} else {
|
} else {
|
||||||
$libelleproduitservice .= $desc;
|
$libelleproduitservice .= $desc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$libelleproduitservice .= $desc;
|
$libelleproduitservice .= $desc;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user