FIX : We need to see unit line on PDF even though it's an option

This commit is contained in:
VERDOL Gauthier 2020-07-27 16:04:21 +02:00
parent 4f5c5356c5
commit 25994e61bc

View File

@ -1826,7 +1826,6 @@ function pdf_getlineunit($object, $i, $outputlangs, $hidedetails = 0, $hookmanag
}
if (empty($reshook))
{
if ($object->lines[$i]->special_code == 3) return '';
if (empty($hidedetails) || $hidedetails > 1) $result.=$langs->transnoentitiesnoconv($object->lines[$i]->getLabelOfUnit('short'));
}
return $result;