From fee1f7311d9e8b9c95b3c32ada6a52824a211247 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 22 Jan 2024 09:50:39 +1100 Subject: [PATCH] Prevent reminder fees being taxes in DE region --- app/DataMapper/Tax/DE/Rule.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/DataMapper/Tax/DE/Rule.php b/app/DataMapper/Tax/DE/Rule.php index d1a6a9e12458..1c251a6713a4 100644 --- a/app/DataMapper/Tax/DE/Rule.php +++ b/app/DataMapper/Tax/DE/Rule.php @@ -11,6 +11,7 @@ namespace App\DataMapper\Tax\DE; +use App\DataMapper\InvoiceItem; use App\DataMapper\Tax\BaseRule; use App\DataMapper\Tax\RuleInterface; use App\Models\Product; @@ -63,7 +64,7 @@ class Rule extends BaseRule implements RuleInterface public function taxByType($item): self { - if ($this->client->is_tax_exempt || !property_exists($item, 'tax_id')) { + if ($this->client->is_tax_exempt || !property_exists($item, 'tax_id') || (isset($item->type_id) && $item->type_id == '5')) { return $this->taxExempt($item); }