Skip to content

Commit 841ac0c

Browse files
committed
Fixed Bug in checkean13
1 parent 91a7f5e commit 841ac0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

check_ean_13/js/ean13.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ function checkean(code)
1717
}
1818
checkdigit = 10 - (sum%10);
1919

20+
if (checkdigit == 10) {
21+
checkdigit = 0;
22+
}
23+
2024
if (checkdigit == act_checkdigit) {
2125
return true;
2226
}

0 commit comments

Comments
 (0)