mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Add in multiple methods to determine the USState
This commit is contained in:
parent
056e0dc7a4
commit
6a38b7a14a
@ -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;
|
$this->tax_name1 = $this->invoice->client->company->tax_data->regions->{$this->client_region}->subregions->{$this->client_subregion}->tax_name;
|
||||||
|
|
||||||
if($this->client_region == 'US')
|
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;
|
return $this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user