-
-
Notifications
You must be signed in to change notification settings - Fork 71
FEAT: Add new VAT number validator #97
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
base: develop
Are you sure you want to change the base?
FEAT: Add new VAT number validator #97
Conversation
olivervogel
left a comment
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.
Thank you very much. I have two change requests. Otherwise, it's a good idea and implementation.
olivervogel
left a comment
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.
Thank you. I noticed one last thing.
| yield [true, 'CHE123456789TVA']; | ||
| yield [true, 'CHE123456789IVA']; | ||
| yield [true, 'CH123456']; | ||
| yield [true, ' de123456789 ']; |
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.
| yield [true, ' de123456789 ']; | |
| yield [false, ' de123456789 ']; |
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.
This matches the behaviour of the other rules.
This PR adds a new validation rules for a European VAT number.
Its is only validating the format and not for existence