mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
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…
x
Reference in New Issue
Block a user