diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php
index 07c7b0b332d..f3e0e1714e2 100644
--- a/htdocs/takepos/invoice.php
+++ b/htdocs/takepos/invoice.php
@@ -1072,7 +1072,7 @@ if ($placeid > 0)
$htmlforlines .= '';
$htmlforlines .= '
'.vatrate($line->remise_percent, true).' | ';
$htmlforlines .= '';
- if (!empty($conf->stock->enabled))
+ if (!empty($conf->stock->enabled) && !empty($user->rights->stock->mouvement->lire))
{
$constantforkey = 'CASHDESK_ID_WAREHOUSE'.$_SESSION["takeposterminal"];
$sql = "SELECT e.rowid, e.ref, e.lieu, e.fk_parent, e.statut, ps.reel, ps.rowid as product_stock_id, p.pmp";
|