Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.3, 5.2.0-b1
    • Component/s: None
    • Labels:
      None

      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 Jonathan Reissmueller created issue -
        jonathan Jonathan Reissmueller made changes -
        Field Original Value New Value
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.2.0 Sprint 3 [ 140 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Fix Version/s 5.2.0-b1 [ 11709 ]
        jonathan 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 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 Jonathan Reissmueller made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        jonathan Jonathan Reissmueller made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 16 minutes [ 960 ]
        Worklog Id 15227 [ 15227 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Review [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              24/Aug/21

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 16 minutes
              16m

                Agile