• Hi Diego,

    I see this in my logs:

    wc-aelia-eu-vat-assistant.WARNING: Tax rate contains an in invalid country code {“Country Code”:””,”Rate ID”:175,”Tax Row”:”[object] (stdClass: {\”items_tax_amount\”:0,\”shipping_tax_amount\”:0,\”refunded_items_tax_amount\”:0,\”refunded_shipping_tax_amount\”:0,\”items_total\”:0,\”shipping_total\”:0,\”refunded_items_total\”:0,\”refunded_shipping_total\”:0,\”tax_rate_data\”:{\”label\”:\”VAT (0%)\”,\”tax_rate\”:\”0.0000\”,\”tax_rate_country\”:\”\”,\”tax_rate_class\”:\”zero\”,\”is_moss\”:true}})”,”Tax Rate”:”[object] (stdClass: {\”label\”:\”VAT (0%)\”,\”tax_rate\”:\”0.0000\”,\”tax_rate_country\”:\”\”,\”tax_rate_class\”:\”zero\”,\”is_moss\”:true})”} {“process_id”:[number removed]}

    Why is this appearing? Thanks for your help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter contact3243

    (@contact3243)

    My guess at which tax rate I setup is the issue is:

    Country code *
    State code *
    Postcode / ZIP *
    City *
    Rate % 0.0000
    Tax name VAT (0%)
    Priority 1
    Compound
    Shipping

    Though I’m not sure why the error is appearing. Thanks

    Plugin Author Diego

    (@daigo75)

    The warning does indeed appear because of the “*” in the settings. The report generated by the EU VAT Assistant is designed based on the assumption that each VAT rate has a valid country code assigned to it, which matches the list of countries in WooCommerce. That’s an important information to have, because the report must be able to determine how much tax was charged to each country, the VAT rate that applied and so on. With an asterisk, you would get a single entry with “*” as the country code, which would not allow to break down the tax by country.

    If you added the row with 0% at the bottom of your settings, to indicate “no tax for any country that doesn’t appear in the list”, you can just remove that line. WooCommerce doesn’t charge any tax when a country doesn’t match an entry in the list, there’s no need to specify a “0%” entry. If you do need to have a 0% VAT entry for specific countries, then the best way to do so would be to add one row for each of the countries that needs that line, instead of an asterisk, so that each entry can be distinguished from the others.

    I will also ask to check if we can allow the report to show the “*” entry in the reports. As explained, such entry won’t be useful to file the VAT returns, but we could still show it, instead of displaying an error.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: invalid country code’ is closed to new replies.