Merge pull request #18406 from vincentjdc/supplier-order-hide-product-label
NEW : Adds PDF_HIDE_PRODUCT_LABEL_IN_SUPPLIER_LINES to hide product label in supplier order lines
This commit is contained in:
commit
3e5deeadf4
@ -1357,12 +1357,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