From 6a38b7a14a2add10e97d87c23615b60bcc66b024 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 24 Apr 2023 12:50:35 +1000 Subject: [PATCH] Add in multiple methods to determine the USState --- app/DataMapper/Tax/US/Rule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/DataMapper/Tax/US/Rule.php b/app/DataMapper/Tax/US/Rule.php index 68cc9bd2c05a..11b08ce41f81 100644 --- a/app/DataMapper/Tax/US/Rule.php +++ b/app/DataMapper/Tax/US/Rule.php @@ -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;