From 91af13069acce83d7b5db2e6ca622a5949e689ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sat, 1 Nov 2025 18:55:28 +0100 Subject: [PATCH] fix strict check (#36055) --- htdocs/product/stock/class/mouvementstock.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/product/stock/class/mouvementstock.class.php b/htdocs/product/stock/class/mouvementstock.class.php index 4572ab7380f..be0b776bf9a 100644 --- a/htdocs/product/stock/class/mouvementstock.class.php +++ b/htdocs/product/stock/class/mouvementstock.class.php @@ -454,7 +454,8 @@ class MouvementStock extends CommonObject $qtyisnotenough = 0; if (isset($product->stock_warehouse[$entrepot_id])) { foreach ($product->stock_warehouse[$entrepot_id]->detail_batch as $batchcursor => $prodbatch) { - if ((string) $batch != (string) $batchcursor) { // Lot '59' must be different than lot '59c' + // Lot '59' must be different than lot '59c' and also '0123' must be different than '123' + if ((string) $batch !== (string) $batchcursor) { continue; }