Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix problem in ES validating NIE numbers starting with Y and Z. #217

Closed
wants to merge 3 commits into from

Conversation

danielmaxx
Copy link

Some time ago this ticket was opened but not correctly fixed.

The checksum should be calculated by prepending the index of the first letter. More reference can be found here: https://es.wikipedia.org/wiki/N%C3%BAmero_de_identificaci%C3%B3n_fiscal#D.C3.ADgito_de_control_para_n.C3.BAmeros_de_DNI_o_NIE

@benkonrath benkonrath added the bug label Apr 3, 2016
@benkonrath
Copy link
Member

This looks great, thanks! Can you just add a couple of housekeeping items:

  • Add your name to docs/authors.rst if it's not already there.
  • Add an entry to the docs/changelog.rst

Thanks.

@benkonrath benkonrath self-assigned this Apr 3, 2016
@danielmaxx
Copy link
Author

Done! I hope everything is fine now.

Many thanks for the kind help!

@benkonrath
Copy link
Member

Looks good. Can you just rebase from master and squash the commits? Thanks!

@benkonrath
Copy link
Member

I took care of the rebase and squash. I also fixed a small issue with changelog. Thanks for your help. Please do send in more fixes if you find anymore problems.

Fixed via e37786d.

@benkonrath benkonrath closed this Apr 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants