Comments (2)
Hi @vdboor, thank you for your suggestions!
All countries for which a VAT number regex is available, are accepted by default. I don't feel that accepting just anything for unknown countries is a good solution. If you want to suggest new regexes, feel free to add them to this issue or submit a pull request.
I have modified the code to not imply eu_only
anymore when vies_check
is set. If the latter is True
, only VAT numbers from the EU VAT area are validated against VIES, other VAT numbers remain unaffected.
However, please note that the reason for implying eu_only
was a regulatory one: if you must validate against VIES, you must also use eu_only
. I have included a note for this in the documentation.
These fixes will be included in a future release.
from django-internationalflavor.
thanks! :-)
I have modified the code to not imply eu_only anymore when vies_check is set. If the latter is True, only VAT numbers from the EU VAT area are validated against VIES, other VAT numbers remain unaffected.
Wonderful, thanks!
However, please note that the reason for implying eu_only was a regulatory one: if you must validate against VIES, you must also use eu_only. I have included a note for this in the documentation.
I can understand where you are coming from, and that makes perfect sense. My point of reference is an international shop, where people can enter their VAT number. In that case, having a VIES-check is a nice extra benefit, but no matter what, we want people to be able to enter their VAT number even if we don't have a regex for their country yet.
from django-internationalflavor.
Related Issues (12)
- VAT Number: validate EU-VoeS HOT 1
- Not sorted countries HOT 6
- Correct VAT ID is recognized as invalid HOT 2
- [bug] Django-internationalflavor fails to import with new pip resolver HOT 2
- GB country code still in EU_VAT_AREA HOT 2
- New release? HOT 2
- Translations of Form Fields and Error Messages Not Working HOT 2
- VAT ID VIES validation not working HOT 1
- IBAN comparison with other apps is not correct HOT 5
- Ireland VAT numbers issued after 2013 not accepted HOT 2
- KeyError while making migrations HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-internationalflavor.