Closed
Description
hey there,
I noticed that some of the czech rondé číslo are validated as invalid while they are valid. 8801251680
validates as False
because The number's checksum or check digit is invalid
but it seems to actually be a valid rodné cislo.
https://www.martik.cz/validace-rodneho-cisla/#formular

https://www.kurzy.cz/vypocet/rodne-cislo-validace/

I believe the reason is explained here where it states that the this rule can also happen after a year 1985
Lines 98 to 100 in fc766bc
přidělování takových rodných čísel bylo roku 1985 podle interního předpisu FSÚ Č. Vk. 2898/1985 ukončeno; není však vyloučeno, že se v minimálním počtu vyskytla i po tomto roce.
So I believe the fix would be to simply replace the above condition with
if check == 10:
check = check % 10 # or simply check = 0
Metadata
Metadata
Assignees
Labels
No labels