2
0
forked from Wavyzz/dolibarr

Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into 22.0

This commit is contained in:
ldestailleur
2025-08-21 11:09:10 +02:00
12 changed files with 101 additions and 70 deletions

View File

@@ -2323,7 +2323,7 @@ function pdf_getlineqty_keeptoship($object, $i, $outputlangs, $hidedetails = 0)
*/
function pdf_getlineunit($object, $i, $outputlangs, $hidedetails = 0)
{
global $hookmanager, $langs;
global $hookmanager;
$reshook = 0;
$result = '';
@@ -2348,7 +2348,7 @@ function pdf_getlineunit($object, $i, $outputlangs, $hidedetails = 0)
}
if (empty($reshook)) {
if (empty($hidedetails) || $hidedetails > 1) {
$result .= $langs->transnoentitiesnoconv($object->lines[$i]->getLabelOfUnit('short'));
$result .= $object->lines[$i]->getLabelOfUnit('short', $outputlangs, 1);
}
}
return $result;