Correction du calcul de la cled EAN qui était faux
This commit is contained in:
parent
66c4282a61
commit
f76a3602d7
@ -262,7 +262,7 @@ class ProductLivre extends Product
|
|||||||
$sum += 3 * $ean{$i};
|
$sum += 3 * $ean{$i};
|
||||||
}
|
}
|
||||||
|
|
||||||
$key = ($sum % 10);
|
$key = (10 - ($sum % 10));
|
||||||
|
|
||||||
return $key;
|
return $key;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user