mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
remove tax_data from transformers
This commit is contained in:
parent
07c87aeb0c
commit
056e0dc7a4
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user