Coder Social home page Coder Social logo

Comments (2)

ralphje avatar ralphje commented on August 28, 2024

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.

vdboor avatar vdboor commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.