From 6aac4a03b7e8853faab0e27be98e01a7a1de3ecd Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 28 Jun 2024 09:54:28 +1000 Subject: [PATCH] Fixes for override taxes for AT region --- app/DataMapper/Tax/BaseRule.php | 2 -- app/DataMapper/Tax/DE/Rule.php | 8 ++++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/DataMapper/Tax/BaseRule.php b/app/DataMapper/Tax/BaseRule.php index b5b97766d674..78eb1bd9445b 100644 --- a/app/DataMapper/Tax/BaseRule.php +++ b/app/DataMapper/Tax/BaseRule.php @@ -379,7 +379,6 @@ class BaseRule implements RuleInterface public function override($item): self { - nlog("override"); $this->tax_rate1 = $item->tax_rate1; $this->tax_name1 = $item->tax_name1; $this->tax_rate2 = $item->tax_rate2; @@ -387,7 +386,6 @@ class BaseRule implements RuleInterface $this->tax_rate3 = $item->tax_rate3; $this->tax_name3 = $item->tax_name3; - nlog($item); return $this; } diff --git a/app/DataMapper/Tax/DE/Rule.php b/app/DataMapper/Tax/DE/Rule.php index 3de96b14ac5f..726043cf5aa3 100644 --- a/app/DataMapper/Tax/DE/Rule.php +++ b/app/DataMapper/Tax/DE/Rule.php @@ -207,6 +207,14 @@ class Rule extends BaseRule implements RuleInterface */ public function override($item): self { + + $this->tax_rate1 = $item->tax_rate1; + $this->tax_name1 = $item->tax_name1; + $this->tax_rate2 = $item->tax_rate2; + $this->tax_name2 = $item->tax_name2; + $this->tax_rate3 = $item->tax_rate3; + $this->tax_name3 = $item->tax_name3; + return $this; }