remove tax_data from transformers

This commit is contained in:
David Bomba 2023-04-24 12:50:08 +10:00
parent 07c87aeb0c
commit 056e0dc7a4

View File

@ -153,6 +153,10 @@ class Rule extends BaseRule implements RuleInterface
} else {
$this->tax_rate1 = $this->invoice->client->company->tax_data->regions->{$this->client_region}->subregions->{$this->client_subregion}->tax_rate;
$this->tax_name1 = $this->invoice->client->company->tax_data->regions->{$this->client_region}->subregions->{$this->client_subregion}->tax_name;
if($this->client_region == 'US')
$this->tax_name1 = "{$this->tax_data->geoState} ".$this->tax_name1;
}
return $this;