Add a Global variable 'PDF_HIDE_PRODUCT_LABEL_IN_SUPPLIER_LINES' to have the possibility to hide product label in supplier order lines.
This commit is contained in:
parent
d822421e10
commit
e691217d00
@ -1275,12 +1275,15 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0,
|
|||||||
$desc = str_replace('(DEPOSIT)', $outputlangs->trans('Deposit'), $desc);
|
$desc = str_replace('(DEPOSIT)', $outputlangs->trans('Deposit'), $desc);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Description short of product line
|
if (empty($conf->global->PDF_HIDE_PRODUCT_LABEL_IN_SUPPLIER_LINES)) {
|
||||||
$libelleproduitservice = $label;
|
// Description short of product line
|
||||||
if (!empty($libelleproduitservice) && !empty($conf->global->PDF_BOLD_PRODUCT_LABEL)) {
|
$libelleproduitservice = $label;
|
||||||
$libelleproduitservice = '<b>'.$libelleproduitservice.'</b>';
|
if (!empty($libelleproduitservice) && !empty($conf->global->PDF_BOLD_PRODUCT_LABEL)) {
|
||||||
|
$libelleproduitservice = '<b>'.$libelleproduitservice.'</b>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Add ref of subproducts
|
// Add ref of subproducts
|
||||||
if (!empty($conf->global->SHOW_SUBPRODUCT_REF_IN_PDF)) {
|
if (!empty($conf->global->SHOW_SUBPRODUCT_REF_IN_PDF)) {
|
||||||
$prodser->get_sousproduits_arbo();
|
$prodser->get_sousproduits_arbo();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user