Inject location tax_data if present
This commit is contained in:
parent
486804eb30
commit
e0813b020f
|
|
@ -252,8 +252,13 @@ class BaseRule implements RuleInterface
|
|||
|
||||
$tax_data = $company->origin_tax_data;
|
||||
|
||||
} elseif($this->client->location && $this->client->location->is_shipping_location && $this->client->location->tax_data){
|
||||
|
||||
$tax_data = $this->client->location->tax_data;
|
||||
|
||||
} elseif ($this->client->tax_data) {
|
||||
|
||||
|
||||
$tax_data = $this->client->tax_data;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue