Fixes for override taxes for AT region

This commit is contained in:
David Bomba 2024-06-28 09:54:28 +10:00
parent b35d54a2c6
commit 6aac4a03b7
2 changed files with 8 additions and 2 deletions

View File

@ -379,7 +379,6 @@ class BaseRule implements RuleInterface
public function override($item): self public function override($item): self
{ {
nlog("override");
$this->tax_rate1 = $item->tax_rate1; $this->tax_rate1 = $item->tax_rate1;
$this->tax_name1 = $item->tax_name1; $this->tax_name1 = $item->tax_name1;
$this->tax_rate2 = $item->tax_rate2; $this->tax_rate2 = $item->tax_rate2;
@ -387,7 +386,6 @@ class BaseRule implements RuleInterface
$this->tax_rate3 = $item->tax_rate3; $this->tax_rate3 = $item->tax_rate3;
$this->tax_name3 = $item->tax_name3; $this->tax_name3 = $item->tax_name3;
nlog($item);
return $this; return $this;
} }

View File

@ -207,6 +207,14 @@ class Rule extends BaseRule implements RuleInterface
*/ */
public function override($item): self 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; return $this;
} }