Karaka-Management / phpOMS

PHP Framework
Other
2 stars 0 forks source link

Create pre-validator for VAT IDs similar to IBANs. Formats can be found here https://en.wikipedia.org/wiki/VAT_identification_number #324

Closed spl1nes closed 1 year ago

spl1nes commented 1 year ago

Some countries are implemented (EU), other countries still need to be added.

@see phpOMS/Validation/Finance/Vat.php

spl1nes commented 1 year ago

We will only implement EU VAT validation, other countries get weird since the patterns might get mixed (i.e. country pattern A validates a VAT of a wrong country). This issue cannot happen for EU VATs due to their country codes.