new: add hidden option on contract PDF line

This commit is contained in:
Florian HENRY 2022-04-01 11:54:16 +02:00
parent 9be7bae765
commit cbf89df591

View File

@ -355,7 +355,12 @@ class pdf_strato extends ModelePDFContract
$desc = dol_htmlentitiesbr($objectligne->desc, 1); // Desc (not empty for free lines)
$txt = '';
$txt .= $outputlangs->transnoentities("Quantity").' : <strong>'.$objectligne->qty.'</strong> - '.$outputlangs->transnoentities("UnitPrice").' : <strong>'.price($objectligne->subprice).'</strong>'; // Desc (not empty for free lines)
if (empty($conf->global->CONTRACT_HIDE_QTY_ON_PDF)) {
$txt .= $outputlangs->transnoentities("Quantity") . ' : <strong>' . $objectligne->qty . '</strong>';
}
if (empty($conf->global->CONTRACT_HIDE_PRICE_ON_PDF)) {
$txt .= ' - ' . $outputlangs->transnoentities("UnitPrice") . ' : <strong>' . price($objectligne->subprice) . '</strong>';
}
if (empty($conf->global->CONTRACT_HIDE_PLANNED_DATE_ON_PDF)) {
$txt .= '<br>';
$txt .= $outputlangs->transnoentities("DateStartPlannedShort")." : <strong>".$datei."</strong> - ".$outputlangs->transnoentities("DateEndPlanned")." : <strong>".$datee.'</strong>';