diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index d615a7ddc07..f2d4f04a79b 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -210,6 +210,7 @@ $sql .= ' HAVING (p.desiredstock > SUM(s.reel) or SUM(s.reel) is NULL)'; $sql .= ' AND p.desiredstock > 0'; if ($salert == 'on') { $sql .= ' AND SUM(s.reel) < p.seuil_stock_alerte AND p.seuil_stock_alerte is not NULL'; + $alertchecked = 'checked="checked"'; } $sql .= $db->order($sortfield,$sortorder); $sql .= $db->plimit($limit + 1, $offset); @@ -370,7 +371,7 @@ if ($resql) { ''; } echo '