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) 2015-2016 Marcos García <marcosgdf@gmail.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
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -1315,7 +1316,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) && $prodser->isVariant()) {
|
||||
$libelleproduitservice = $desc;
|
||||
} else {
|
||||
$libelleproduitservice .= $desc;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user