diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 0b0f1235a62..2c2bd754b04 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -458,10 +458,11 @@ if ($resql) { } else { $stock = $objp->stock_physique; } + $warning=''; if ($objp->seuil_stock_alerte && ($stock < $objp->seuil_stock_alerte)) { $warn = $langs->trans('StockTooLow'); - $stock = img_warning($warn) . ' ' . $stock; + $warning = img_warning($warn) . ' '; } //depending on conf, use either physical stock or //virtual stock to compute the stock to buy value @@ -470,7 +471,7 @@ if ($resql) { '', $stock, '', - ''.$stocktobuy.'', + '', $warning, $stocktobuy , '', '', '', ordered($prod->id),