diff --git a/htdocs/product/list.php b/htdocs/product/list.php index f66b1cb5b8b..2c3351b69ac 100644 --- a/htdocs/product/list.php +++ b/htdocs/product/list.php @@ -1787,7 +1787,9 @@ if ($resql) { if ($obj->seuil_stock_alerte != '' && $product_static->stock_reel < (float) $obj->seuil_stock_alerte) { print img_warning($langs->trans("StockLowerThanLimit", $obj->seuil_stock_alerte)).' '; } - print price(price2num($product_static->stock_reel, 'MS')); + if ($usercancreadprice) { + print price(price2num($product_static->stock_reel, 'MS')); + } } print ''; if (!$i) { @@ -1801,7 +1803,9 @@ if ($resql) { if ($obj->seuil_stock_alerte != '' && $product_static->stock_theorique < (float) $obj->seuil_stock_alerte) { print img_warning($langs->trans("StockLowerThanLimit", $obj->seuil_stock_alerte)).' '; } - print price(price2num($product_static->stock_theorique, 'MS')); + if ($usercancreadprice) { + print price(price2num($product_static->stock_theorique, 'MS')); + } } print ''; if (!$i) {