Add in multiple methods to determine the USState

This commit is contained in:
David Bomba 2023-04-24 12:50:35 +10:00
parent 056e0dc7a4
commit 6a38b7a14a

View File

@ -155,8 +155,8 @@ class Rule extends BaseRule implements RuleInterface
$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;
$this->tax_name1 = "{$this->client_subregion} ".$this->tax_name1;
}
return $this;