mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Merge pull request #8876 from turbo124/v5-develop
Fixes for missing Tax_id prop
This commit is contained in:
commit
6af9297209
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
Block a user