• Resolved Hergé

    (@rguilbert)


    Greetings to all !
    Since this morning, I have a strange problem without updated any Plugin.
    It’s a customer who asked me about the VAT on his invoice.
    I tried, the log is the following:
    [2020-01-22 13:09:46] wc-aelia-eu-vat-assistant.DEBUG: VAT number validation complete. {“Country Code”:”IT”,”VAT Number”:”08802411xxx”,”VIES Response”:{“countryCode”:”IT”,”vatNumber”:”08802411xxx”,”requestDate”:”2020-01-22+01:00″,”valid”:”true”,”traderName”:”PICxxx S.R.L.”,”traderCompanyType”:”—“,”traderAddress”:”xxxxxx”,”requestIdentifier”:””}} {“process_id”:14146}
    So that seem to work with VIES, but the VAT is not deduce, anything happen on the checkout page (no refresh of the VAT)
    Any idea ?
    I updated the plugin, but always the same issue.
    Thanks

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Diego

    (@daigo75)

    Based on a quick test, your site seems to be working correctly. Entering a valid VAT number at checkout results in the VAT being set to zero (see https://prnt.sc/qrb46d).

    It just seems that you must also enter a billing address to refresh the totals. If you just enter the billing country and the VAT number, the totals are not updated. This might depend on the theme, or on some code that doesn’t trigger the “refresh totals” event unless the billing address has been filled.

    Thread Starter Hergé

    (@rguilbert)

    Greetings @daigo75 and thanks a lot for your answer.
    I’m always working on some strange issues…
    Right now, the log indicate “The VAT number should contain a minimum of 8 digits, excluding the country prefix”
    But if I check the VAT number (7 digits, see below) of this customer on the VAT VIES website, the VAT is valid.
    Please, let me know
    Thanks

    [2020-02-03 09:55:40] wc-aelia-eu-vat-assistant.INFO: Setting customer VAT exemption. {“Country”:”RO”,”VAT Number”:””} {“process_id”:5479}
    [2020-02-03 09:55:40] wc-aelia-eu-vat-assistant.DEBUG: VAT exemption check completed. {“Customer Exemption”:false,”Result”:0} {“process_id”:5479}
    [2020-02-03 09:56:00] wc-aelia-eu-vat-assistant.INFO: An invalid VAT number was passed for validation. The VAT number should contain a minimum of 8 digits, excluding the country prefix. Received VAT number: “RO4017480”. [] {“process_id”:6018}
    [2020-02-03 09:56:00] wc-aelia-eu-vat-assistant.INFO: Setting customer VAT exemption. {“Country”:”RO”,”VAT Number”:”RO4017480″} {“process_id”:6019}
    [2020-02-03 09:56:00] wc-aelia-eu-vat-assistant.INFO: An invalid VAT number was passed for validation. The VAT number should contain a minimum of 8 digits, excluding the country prefix. Received VAT number: “RO4017480”. [] {“process_id”:6019}
    [2020-02-03 09:56:00] wc-aelia-eu-vat-assistant.DEBUG: VAT exemption check completed. {“Customer Exemption”:false,”Result”:5001} {“process_id”:6019}

    Plugin Author Diego

    (@daigo75)

    To avoid sending too many validation requests, we implemented a check on the length of the VAT number field. VAT numbers that are too short are already known to be invalid, therefore the validation can be skipped.

    The documentation we found explained that the shortest VAT number, for any EU country, is 8 digits. However, it looks like Romania is an exception, with VAT numbers as short as 2 digits.

    I will ask to amend the check, so that the minimum length can be verified correctly, following the new information we found. We are planning to release an update this week, I will see if we can include this change in it as well.

    Thread Starter Hergé

    (@rguilbert)

    Thanks @daigo75 !
    You are right, it is write everywhere (Wikipedia and others) than the VAT number for Romania = RO + 8 digits
    Here, it’s 1 digit shorter, not 2.
    Thanks

    • This reply was modified 4 years, 9 months ago by Hergé.
    Plugin Author Diego

    (@daigo75)

    Indeed, the information found on different sites is mixed. For Romania, some say 8 characters, some say 2 to 8. I can’t imagine a VAT number with two digits, but if it’s allowed, then it must be handled.

    We’ll get that sorted in the upcoming version.

    Thread Starter Hergé

    (@rguilbert)

    Greetings,

    Thanks for this great plugin I use for some years…

    I encountered the same problem today with another Romania customer who has been registered for many years. Before his last order, it worked. Now it doesn’t work anymore.

    It seems that the VAT number length check was added only a few months ago.

    Not easy to manage orders from Romania, between ordinary consumers and companies.
    I must, after customer request, switch the VAT to 0% during the order process then switch again to 20%.

    Thanks, let me know if you think to resolve this issue.
    Have a great day

    Plugin Author Diego

    (@daigo75)

    We already fixed the issue with the VAT number length. The latest version (1.12.6.200212) accepts Romanian numbers as short as 2 characters, as that’s the minimum length for that country.

    Plugin Author Diego

    (@daigo75)

    For completeness, the VAT number quoted earlier, which is 7 characters long, is a valid Romanian VAT number and it’s accepted on https://aceautomation.eu. When you enter it, the VAT is removed as expected.

    If another customer can’t get the VAT exemption, then the issue is a different one. The error log should contain information that can help figuring out why the VAT was not deducted.

    Thread Starter Hergé

    (@rguilbert)

    Thanks @daigo75 it works like a charm!
    Thanks again

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘VAT available but not updated to 0’ is closed to new replies.