Skip to content

Commit

Permalink
Don't allow Cross Border Trade to kick in when the tax rate is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
baldwinagency-pieter authored and hostep committed Jul 24, 2023
1 parent ca30c47 commit f7343fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ protected function getAddressRateRequest()
*/
protected function isSameRateAsStore($rate, $storeRate)
{
if ((bool)$this->config->crossBorderTradeEnabled($this->storeId)) {
if ((bool)$this->config->crossBorderTradeEnabled($this->storeId) && $rate > 0.0) {
return true;
} else {
return (abs($rate - $storeRate) < 0.00001);
Expand Down

0 comments on commit f7343fb

Please sign in to comment.