fix strict check (#36055)

This commit is contained in:
Frédéric FRANCE 2025-11-01 18:55:28 +01:00 committed by GitHub
parent b39902a4b4
commit 91af13069a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}