Correction du calcul de la cled EAN qui était faux

This commit is contained in:
Rodolphe Quiedeville 2006-12-03 12:46:37 +00:00
parent 66c4282a61
commit f76a3602d7

View File

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