Giter VIP home page Giter VIP logo

Comments (7)

DragonBe avatar DragonBe commented on June 19, 2024

Yes @jonathanmaron, you're absolutely correct. I suggest that before we remove UK completely (#126) we should first look at integrating Northern Ireland correctly.

What I'm missing in the documentation up to this point are the structure definition and which calculation method is being used to verify if this new VAT ID is formatted correctly. Do you have some details about that?

from vies.

jonathanmaron avatar jonathanmaron commented on June 19, 2024

I would agree with you to add "United Kingdom (Northern Ireland)" before we remove "United Kingdom".

The only documentation that I found on the structure of the new XI VAT numbers is at:

https://www.avalara.com/vatlive/en/vat-news/brexit-northern-ireland-vat-and-eoro--xi--number.html

The UK and EU have agreed the above transactions should use the "XI" country code instead of "GB" for VAT numbers on invoices and statistical declarations. [..] Businesses should substitute "XI" country code in their GB VAT number on invoices so that the transactions can be identified separate from UK VAT transactions. So XI 123456789 - instead of GB 123456789. [..] There is no requirement to apply for a new "XI" VAT number. Businesses with NI postcodes will automatically be assumed to be operating within the terms of the NI Protocol.

According to that, we can simply re-purpose the current "United Kingdom" validator.

from vies.

DragonBe avatar DragonBe commented on June 19, 2024

Yes, this can be done. Do you want to replicate the UK validator for Northern Ireland @jonathanmaron, including the tests?

from vies.

jonathanmaron avatar jonathanmaron commented on June 19, 2024

It would be my pleasure to implement the require classes.

from vies.

jonathanmaron avatar jonathanmaron commented on June 19, 2024

And done. See pull request #128

from vies.

jonathanmaron avatar jonathanmaron commented on June 19, 2024

If you search for some town names in Northern Ireland in the "Enter company name" text entry box at http://www.vat-check.co.uk you can find some real VAT numbers belonging to Northern Ireland businesses. Simply replace "GB" with "XI" for test purposes.

from vies.

DragonBe avatar DragonBe commented on June 19, 2024

Merged #128 after updating GitHub Action to test against PHP 7.4 as some components are not yet ready for PHP 8 unfortunately.

from vies.

Related Issues (20)

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.