onepica / avatax

One Pica Magento extension for sales tax calculation performed by Avatax
http://www.magentocommerce.com/magento-connect/6760.html
29 stars 34 forks source link

Address validation is disable still api calls #288

Open Nehace40 opened 5 years ago

Nehace40 commented 5 years ago

We are using avatax module.

Address Validation setting is disabled. when we check in avatax account it is showing there Address validation api is called several time.

Why it is calling Address validation API?

Nehace40 commented 5 years ago

Any Updates?

Nehace40 commented 5 years ago

Any Updates?

kmdsax commented 5 years ago

Battling this same issue myself! I believe the bug lies in Model\Action\Validator.php , line 79, the last condition in the if statement should be flipped:

    if (!$isAddressValidationOn && !$isAddressNormalizationOn && !$isAddressActionable) {
        return true;
    }

should be changed to:

    if (!$isAddressValidationOn && !$isAddressNormalizationOn && $isAddressActionable) {
        return true;
    }

In my testing this does seem to solve the issue while not breaking anything else.