This commit is contained in:
Laurent Destailleur 2022-06-14 16:56:03 +02:00
parent 866fc4d83e
commit 6c1c8058c1
2 changed files with 6 additions and 3 deletions

View File

@ -2414,7 +2414,8 @@ if ($action == 'create') {
}
print "</tr>";
// Display lines extrafields
// Display lines extrafields.
// $line is a line of shipment
if (!empty($extrafields)) {
$colspan = 6;
if ($origin && $origin_id > 0) {

View File

@ -1238,7 +1238,9 @@ if ($action == 'create') {
print "</tr>\n";
$extralabelslines = $extrafields->attributes[$line->table_element];
//Display lines extrafields
// Display lines extrafields
// $line is a line of reception (so CommandeFournisseurDispatch)
if (is_array($extralabelslines) && count($extralabelslines) > 0) {
$colspan = 5;
if ($conf->productbatch->enabled) {
@ -1260,7 +1262,7 @@ if ($action == 'create') {
}
$line->array_options = array_merge($line->array_options, $srcLine->array_options);
print $line->showOptionals($extrafields, 'edit', array('style'=>'class="oddeven"', 'colspan'=>$colspan), $indiceAsked);
print $line->showOptionals($extrafields, 'edit', array('style'=>'class="oddeven"', 'colspan'=>$colspan), $indiceAsked, '', 1);
}
$indiceAsked++;