diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 9fabf33fee7..9447187e16c 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -956,6 +956,21 @@ while ($i < ($limit ? min($num, $limit) : $num)) { $i++; } +if ($num == 0) { + $colspan = 9; + if (isModEnabled("service") && $type == 1) { + $colspan++; + } + if (!empty($conf->global->STOCK_ALLOW_ADD_LIMIT_STOCK_BY_WAREHOUSE) && $fk_entrepot > 0) { + $colspan++; + } + print ''; + print ''; + print $langs->trans("None"); + print ''; + print ''; +} + $parameters = array('sql'=>$sql); $reshook = $hookmanager->executeHooks('printFieldListFooter', $parameters); // Note that $action and $object may have been modified by hook print $hookmanager->resPrint;