diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index d5eeac44995..ff71f5f605c 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -689,7 +689,11 @@ if (!empty($conf->service->enabled) && $type == 1) print ''.$form->textwithpicto($langs->trans('IncludeEmptyDesiredStock'), $langs->trans('IncludeProductWithUndefinedAlerts')).' '; print ''; print ''.$langs->trans('AlertOnly').' '; -print ''.$langs->trans('IncludeAlsoDraftOrders').' '; +print ''; +if (! empty($conf->global->STOCK_REPLENISH_ADD_CHECKBOX_INCLUDE_DRAFT_ORDER)) { + print $langs->trans('IncludeAlsoDraftOrders').' '; +} +print ''; print ' '; // Fields from hook $parameters = array('param'=>$param, 'sortfield'=>$sortfield, 'sortorder'=>$sortorder);