From c37767c5a05e77e0be8630845d560d9f8cf36c91 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 18 Sep 2021 16:15:21 +0200 Subject: [PATCH] Update mo_production.php --- htdocs/mrp/mo_production.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 }