From 9913d4c0b260d4d5a33ea92e7502181620ba1ffa Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 15 Oct 2023 17:15:38 +1100 Subject: [PATCH] Minor fixes for tax rules --- app/DataMapper/Tax/AU/Rule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/DataMapper/Tax/AU/Rule.php b/app/DataMapper/Tax/AU/Rule.php index d6536e1a7177..c1d9e7ed218e 100644 --- a/app/DataMapper/Tax/AU/Rule.php +++ b/app/DataMapper/Tax/AU/Rule.php @@ -62,7 +62,7 @@ class Rule extends BaseRule implements RuleInterface public function taxByType($item): self { - if ($this->client->is_tax_exempt) { + if ($this->client->is_tax_exempt || !property_exists($item, 'tax_id')) { return $this->taxExempt($item); }