From 198ff218906b8ad2f9916ac87b2ced7ab8519d24 Mon Sep 17 00:00:00 2001 From: Anthony Berton Date: Thu, 25 Aug 2022 08:32:18 +0200 Subject: [PATCH] forgot --- htdocs/product/list.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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) {