Closed bapons closed 3 years ago
I don't think that for example GR039868210
is a valid Greek VAT number while the same number starting with EL
is considered valid. If a VAT number starting with GR is documented to be valid in some cases we should probably modify the compact()
function to replace GR
with EL
Totally true about GR03986821
, is not a valid VAT number.
I just thought could be a good idea to change values before call VIES service, just for Greece. Because it is an exception compared with the other countries.
Flip greek codes "gr" -> "el"
As we know VIES greek code accepted is EL For that would be nice to flip values if we detect the code is GR before making the request to VIES wsdl.
The library already does something similar to get the module from the country of Greece but on the contrary.
Related code
I was thinking of something like this Related code