Update productaccount.php

This commit is contained in:
Philippe Grand 2019-01-16 19:19:14 +01:00 committed by GitHub
parent 27edf7c803
commit 6d266d78b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -396,12 +396,12 @@ if ($result)
print $product_static->getNomUrl(1);
print '</td>';
print '<td style="text-align:left;">'.$obj->label.'</td>';
print '<td class="left">'.$obj->label.'</td>';
if (! empty($conf->global->ACCOUNTANCY_SHOW_PROD_DESC))
{
// TODO ADJUST DESCRIPTION SIZE
// print '<td style="text-align:left;">' . $obj->description . '</td>';
// print '<td class="left">' . $obj->description . '</td>';
// TODO: we shoul set a user defined value to adjust user square / wide screen size
$trunclengh = empty($conf->global->ACCOUNTING_LENGTH_DESCRIPTION) ? 32 : $conf->global->ACCOUNTING_LENGTH_DESCRIPTION;
print '<td style="' . $code_sell_p_l_differ . '">' . nl2br(dol_trunc($obj->description, $trunclengh)) . '</td>';