Details
Description
It appears that VIES uses the alpha2 code EL for Greece, while the official ISO_3166 is GR. This mismatch is causing an issue with our validation. To resolve, edit core/Util/tax/EuropeTax.php and change line 40 from:
$validator = new Validator(new Europa, $tax_id, $country);
To
$validator = new Validator(new Europa, $tax_id, $country == 'GR' ? 'EL' : $country);
And line 88 from:
$validator = new Validator(new Europa, $tax_id, $country);
To
$validator = new Validator(new Europa, $tax_id, $country == 'GR' ? 'EL' : $country);
Activity
Jonathan Reissmueller
created issue -
Jonathan Reissmueller
made changes -
Field | Original Value | New Value |
---|---|---|
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Sprint | 5.2.0 Sprint 3 [ 140 ] |
Jonathan Reissmueller
made changes -
Rank | Ranked lower |
Jonathan Reissmueller
made changes -
Rank | Ranked higher |
Jonathan Reissmueller
made changes -
Fix Version/s | 5.2.0-b1 [ 11709 ] |
Jonathan Reissmueller
made changes -
Description |
It appears that VIES uses the alpha2 code EL for Greece, while the official ISO_3166 is GR. This mismatch is causing an issue with our validation. To resolve, edit core/Util/tax/EuropeTax.php line 40 from:
$validator = new Validator(new Europa, $tax_id, $country); To $validator = new Validator(new Europa, $tax_id, $country == 'GR' ? 'EL' : $country); And line 88 from: $validator = new Validator(new Europa, $tax_id, $country); To $validator = new Validator(new Europa, $tax_id, $country == 'GR' ? 'EL' : $country); |
It appears that VIES uses the alpha2 code EL for Greece, while the official ISO_3166 is GR. This mismatch is causing an issue with our validation. To resolve, edit core/Util/tax/EuropeTax.php line 40 from:
{code:java} $validator = new Validator(new Europa, $tax_id, $country); {code} To {code:java} $validator = new Validator(new Europa, $tax_id, $country == 'GR' ? 'EL' : $country); {code} And line 88 from: {code:java} $validator = new Validator(new Europa, $tax_id, $country); {code} To {code:java} $validator = new Validator(new Europa, $tax_id, $country == 'GR' ? 'EL' : $country); {code} |
Jonathan Reissmueller
made changes -
Description |
It appears that VIES uses the alpha2 code EL for Greece, while the official ISO_3166 is GR. This mismatch is causing an issue with our validation. To resolve, edit core/Util/tax/EuropeTax.php line 40 from:
{code:java} $validator = new Validator(new Europa, $tax_id, $country); {code} To {code:java} $validator = new Validator(new Europa, $tax_id, $country == 'GR' ? 'EL' : $country); {code} And line 88 from: {code:java} $validator = new Validator(new Europa, $tax_id, $country); {code} To {code:java} $validator = new Validator(new Europa, $tax_id, $country == 'GR' ? 'EL' : $country); {code} |
It appears that VIES uses the alpha2 code EL for Greece, while the official ISO_3166 is GR. This mismatch is causing an issue with our validation. To resolve, edit core/Util/tax/EuropeTax.php and change line 40 from:
{code:java} $validator = new Validator(new Europa, $tax_id, $country); {code} To {code:java} $validator = new Validator(new Europa, $tax_id, $country == 'GR' ? 'EL' : $country); {code} And line 88 from: {code:java} $validator = new Validator(new Europa, $tax_id, $country); {code} To {code:java} $validator = new Validator(new Europa, $tax_id, $country == 'GR' ? 'EL' : $country); {code} |
Jonathan Reissmueller
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Jonathan Reissmueller
made changes -
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 16 minutes [ 960 ] | |
Worklog Id | 15227 [ 15227 ] |
Jonathan Reissmueller
made changes -
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Jonathan Reissmueller
made changes -
Status | In Review [ 5 ] | Closed [ 6 ] |