From a607cb677ddafdc7a955d6a25a72def44d5ddead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Salvador?= Date: Mon, 1 Jul 2013 18:46:32 +0200 Subject: [PATCH] Bug fix: stock to buy now computes correctly when the stock too low picto is present --- htdocs/product/stock/replenish.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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),