diff --git a/htdocs/mrp/mo_production.php b/htdocs/mrp/mo_production.php index 75be12ffc39..97246d120c8 100644 --- a/htdocs/mrp/mo_production.php +++ b/htdocs/mrp/mo_production.php @@ -878,12 +878,14 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea // Warehouse print ''; print ''; - print ''; - if ($tmpproduct->stock_reel < ($line->qty-$alreadyconsumed)) { - print img_warning($langs->trans('StockTooLow')).' '; + if ($conf->stock->enabled) { + print ''; + if ($tmpproduct->stock_reel < ($line->qty-$alreadyconsumed)) { + print img_warning($langs->trans('StockTooLow')).' '; + } + print $tmpproduct->stock_reel; // Available + print ''; } - print $tmpproduct->stock_reel; // Available - print ''; if ($conf->productbatch->enabled) { print ''; // Lot }