Standardize product ref and name column length (#34622)

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
Elyn
2025-06-25 22:45:06 +02:00
committed by GitHub
parent ce1403d318
commit f46f68fef8
3 changed files with 6 additions and 6 deletions

View File

@@ -549,8 +549,8 @@ if ($resql) {
if (getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')) {
print '<td></td>';
}
print '<td class="nowrap">';
print $product->getNomUrl(1, '', 16);
print '<td class="tdoverflowmax250">';
print $product->getNomUrl(1);
//if ($objp->stock_theorique < $objp->seuil_stock_alerte) print ' '.img_warning($langs->trans("StockTooLow"));
print '</td>';
print '<td class="tdoverflowmax150" title="'.dol_escape_htmltag($product->label).'">'.dol_escape_htmltag($product->label).'</td>';

View File

@@ -765,8 +765,8 @@ while ($i < $imaxinloop) {
}
// Ref
print '<td class="nowrap">';
print $product_static->getNomUrl(1, '', 16);
print '<td class="tdoverflowmax250">';
print $product_static->getNomUrl(1);
//if ($objp->stock_theorique < $objp->seuil_stock_alerte) print ' '.img_warning($langs->trans("StockTooLow"));
print '</td>';
if (!$i) {
@@ -774,7 +774,7 @@ while ($i < $imaxinloop) {
}
// Label
print '<td>'.$objp->label.'</td>';
print '<td class="tdoverflowmax150">'.$objp->label.'</td>';
if (!$i) {
$totalarray['nbfield']++;
}

View File

@@ -148,7 +148,7 @@ class Productlot extends CommonObject
*/
public $fields = array(
'rowid' => array('type' => 'integer', 'label' => 'TechnicalID', 'enabled' => 1, 'visible' => -2, 'noteditable' => 1, 'notnull' => 1, 'index' => 1, 'position' => 1, 'comment' => 'Id', 'css' => 'left'),
'fk_product' => array('type' => 'integer:Product:product/class/product.class.php', 'label' => 'Product', 'enabled' => 1, 'visible' => 1, 'position' => 5, 'notnull' => 1, 'index' => 1, 'searchall' => 1, 'picto' => 'product', 'css' => 'maxwidth500 widthcentpercentminusxx', 'csslist' => 'maxwidth150'),
'fk_product' => array('type' => 'integer:Product:product/class/product.class.php', 'label' => 'Product', 'enabled' => 1, 'visible' => 1, 'position' => 5, 'notnull' => 1, 'index' => 1, 'searchall' => 1, 'picto' => 'product', 'css' => 'maxwidth500 widthcentpercentminusxx', 'csslist' => 'tdoverflowmax250'),
'batch' => array('type' => 'varchar(30)', 'label' => 'Batch', 'enabled' => 1, 'visible' => 1, 'notnull' => 1, 'showoncombobox' => 1, 'index' => 1, 'position' => 10, 'comment' => 'Batch', 'searchall' => 1, 'picto' => 'lot', 'validate' => 1),
'entity' => array('type' => 'integer', 'label' => 'Entity', 'enabled' => 1, 'visible' => 0, 'default' => '1', 'notnull' => 1, 'index' => 1, 'position' => 20),
'sellby' => array('type' => 'date', 'label' => 'SellByDate', 'enabled' => 'empty($conf->global->PRODUCT_DISABLE_SELLBY)?1:0', 'visible' => 1, 'notnull' => 0, 'position' => 60),