Fixes for null or missing tax_id props
This commit is contained in:
parent
9913d4c0b2
commit
1403345989
|
|
@ -297,7 +297,7 @@ class BaseRule implements RuleInterface
|
|||
public function tax($item = null): self
|
||||
{
|
||||
|
||||
if ($this->client->is_tax_exempt) {
|
||||
if ($this->client->is_tax_exempt || !property_exists($item, 'tax_id')) {
|
||||
|
||||
return $this->taxExempt($item);
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue