diff --git a/app/DataMapper/Tax/BaseRule.php b/app/DataMapper/Tax/BaseRule.php index 41f9abd86799..ccc0d46a4449 100644 --- a/app/DataMapper/Tax/BaseRule.php +++ b/app/DataMapper/Tax/BaseRule.php @@ -319,6 +319,7 @@ class BaseRule implements RuleInterface Product::PRODUCT_TYPE_EXEMPT => $this->taxExempt($item), Product::PRODUCT_TYPE_REDUCED_TAX => $this->taxReduced($item), Product::PRODUCT_TYPE_OVERRIDE_TAX => $this->override($item), + Product::PRODUCT_TYPE_ZERO_RATED => $this->zeroRated($item), default => $this->defaultForeign(), }; @@ -327,6 +328,14 @@ class BaseRule implements RuleInterface } + public function zeroRated($item): self + { + $this->tax_rate1 = 0; + $this->tax_name1 = ctrans('texts.zero_rated'); + + return $this; + } + public function taxByType(mixed $type): self { return $this;