Update pdf.lib.php
This commit is contained in:
parent
abd984bc14
commit
baabfd380f
@ -1413,9 +1413,6 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0,
|
|||||||
$discount->fetch($object->lines[$i]->fk_remise_except);
|
$discount->fetch($object->lines[$i]->fk_remise_except);
|
||||||
$libelleproduitservice = $outputlangs->transnoentitiesnoconv("DiscountFromExcessPaid", $discount->ref_invoice_supplier_source);
|
$libelleproduitservice = $outputlangs->transnoentitiesnoconv("DiscountFromExcessPaid", $discount->ref_invoice_supplier_source);
|
||||||
} else {
|
} else {
|
||||||
if (dol_textishtml($libelleproduitservice) && !dol_textishtml($desc)) {
|
|
||||||
$desc = str_replace("\n", '<br>', $desc);
|
|
||||||
}
|
|
||||||
if ($idprod) {
|
if ($idprod) {
|
||||||
// Check if description must be output
|
// Check if description must be output
|
||||||
if (!empty($object->element)) {
|
if (!empty($object->element)) {
|
||||||
@ -1431,12 +1428,12 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0,
|
|||||||
if (!empty($conf->global->HIDE_LABEL_VARIANT_PDF) && $prodser->isVariant()) {
|
if (!empty($conf->global->HIDE_LABEL_VARIANT_PDF) && $prodser->isVariant()) {
|
||||||
$libelleproduitservice = $desc;
|
$libelleproduitservice = $desc;
|
||||||
} else {
|
} else {
|
||||||
$libelleproduitservice .= $desc;
|
$libelleproduitservice = dol_concatdesc($libelleproduitservice, $desc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$libelleproduitservice .= $desc;
|
$libelleproduitservice = dol_concatdesc($libelleproduitservice, $desc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user