I successfully set up this module on my project. Everything works as expected, except shipping to croatia.
In every country in the eu the VAT is applied correctly, but if i try to ship something to croatia, the VAT is not applied.

I did some research and ended up in the file commerce_eu_vat.rules_defaults.inc.
Here i figured out that in the following code snippet the condition for croatia is missing.

  $rule
  ->condition('component_commerce_vat_profile_address_at', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_be', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_bg', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_cy', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_cz', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_de', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_dk', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_ee', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_es', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_fi', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_fr', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_gb', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_gr', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_hr', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_hu', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_ie', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_it', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_lt', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_lu', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_lv', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_mt', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_nl', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_pl', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_pt', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_ro', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_se', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_si', array('customer_profile:select' => 'customer-profile'))
  ->condition('component_commerce_vat_profile_address_sk', array('customer_profile:select' => 'customer-profile'));

After adding the condition for croatia everything works as expected.

Can someone please check if i am right?

CommentFileSizeAuthor
#2 missing-croatia-rule-2351647.patch1.06 KBsegi

Comments

vbeakovic’s picture

It looks like there is something more to fix. I have modified the code as you did, the Croatian VAT part works now but some of the shipping services are not displayed any more while when Austria is selected everithing works fine. I still didn't find what else should be fixed.

segi’s picture

Version: 7.x-2.2 » 7.x-2.x-dev
StatusFileSize
new1.06 KB

Here is my patch, I didn't know reproduce the issue with missing shipping options. If someone will find the solution, maybe update this patch.

drupov’s picture

Status: Active » Reviewed & tested by the community
drupov’s picture

Priority: Normal » Major
dwkitchen’s picture

Status: Reviewed & tested by the community » Fixed

  • dwkitchen committed 767f8a0 on 7.x-2.x authored by segi
    Issue #2351647 by segi: VAT not applied when shipping to croatia
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.