Skip to content

Wrong UA edrpou validation for some valid codes #429

Closed
@sector119

Description

@sector119

Hello

I have some valid edrpou codes, but is_valid from stdnum.ua.edrpou returns False

41761770
25083040
23246880
43808820
43328020
43573920
40599600

I can find them at Ukrainian open data catalogue. For example https://opendatabot.ua/c/43808820

For all that codes calc_check_digit() returns 10, but we should compare number[-1] with 0, not with 10 at this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions