Skip to content

Commit

Permalink
Merge pull request #64 from intarsz/fix-greece-vat-online-check
Browse files Browse the repository at this point in the history
Fix Greece VAT number online check
  • Loading branch information
valeriansaliou authored Feb 12, 2024
2 parents e130989 + c7f6041 commit d27b1d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/sales_tax.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@ SalesTax.prototype.validateTaxNumber = function(
// Split VAT number (n extract actual VAT number)
var splitMatch = cleanTaxNumber.match(regex_eu_vat);

if (countryCode === 'GR') {
// Greece has 'EL' code in EU VAT
countryCode = 'EL';
}

// Check fraud on EU VAT number?
if (splitMatch && splitMatch[1]) {
check_fraud_eu_vat(
Expand Down

0 comments on commit d27b1d9

Please sign in to comment.