Merge pull request #23163 from frederic34/patch-9

fix td count
This commit is contained in:
Laurent Destailleur 2022-12-10 16:16:59 +01:00 committed by GitHub
commit 35e1fd5003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1242,10 +1242,15 @@ if ($action == 'create') {
// Display lines for extrafields of the Reception line
// $line is a 'CommandeFournisseurLigne', $dispatchLines contains values of Reception lines so properties of CommandeFournisseurDispatch
if (!empty($extrafields)) {
//var_dump($line);
$colspan = 5;
if (isModEnabled('productbatch')) {
$colspan += 3;
$colspan += 2;
if (empty($conf->global->PRODUCT_DISABLE_SELLBY)) {
$colspan += 1;
}
if (empty($conf->global->PRODUCT_DISABLE_EATBY)) {
$colspan += 1;
}
}
$recLine = new CommandeFournisseurDispatch($db);