Inject location tax_data if present

This commit is contained in:
David Bomba 2025-03-01 09:09:31 +11:00
parent 486804eb30
commit e0813b020f
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}