From 056e0dc7a423885437634ed034723fb28b1d1a46 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 24 Apr 2023 12:50:08 +1000 Subject: [PATCH] remove tax_data from transformers --- app/DataMapper/Tax/US/Rule.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/DataMapper/Tax/US/Rule.php b/app/DataMapper/Tax/US/Rule.php index 85b779020e93..68cc9bd2c05a 100644 --- a/app/DataMapper/Tax/US/Rule.php +++ b/app/DataMapper/Tax/US/Rule.php @@ -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;