From 641502ff594785c764c8268b76fc7bfdde7e2cde Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 3 Apr 2023 08:02:38 +1000 Subject: [PATCH] Fixes for tax all rule --- app/DataMapper/Tax/DE/Rule.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/DataMapper/Tax/DE/Rule.php b/app/DataMapper/Tax/DE/Rule.php index d45d0d74293b..a90cbed240db 100644 --- a/app/DataMapper/Tax/DE/Rule.php +++ b/app/DataMapper/Tax/DE/Rule.php @@ -84,14 +84,21 @@ class Rule extends BaseRule implements RuleInterface public function tax($type): self { - if ($this->client->is_tax_exempt) + + if ($this->client->is_tax_exempt) { return $this->taxExempt(); + } elseif ($this->client->company->tax_data->regions->EU->tax_all) { + + $this->tax_rate1 = $this->vat_rate; + $this->tax_name1 = "MwSt."; + + + return $this; + } if ($type) return $this->taxByType($type); - $this->tax_rate1 = $this->vat_rate; - $this->tax_name1 = "MwSt."; return $this;