-
Notifications
You must be signed in to change notification settings - Fork 348
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
Generate a valid BE TAX number #415
Conversation
When reading the Wikipedia page on Belgian VAT id numbers, it seems there should be 10 digits? |
Yeah the original is technically valid though it will never start with a 1 though. I agree with updating it according spec which is clear i guess? BE |
@bram-pkg Yes. This code generates a 10 digit vat number. '0' + 7 digit random number + 2 digit mod97, which is 10 digits total. @pimjansen The Wikipedia page is not completely clear. The |
My bad, I missed the 0 in your |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Thanks! |
I'm just gonna leave this here for later.
|
According to wikipedia:
This change generates a VAT number according to those rules.