mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01:00
Catch edge case where client tax data is not configured
This commit is contained in:
parent
3b1b54c16c
commit
0b55e49111
@ -145,6 +145,11 @@ class BaseRule implements RuleInterface
|
||||
|
||||
$this->client = $invoice->client;
|
||||
|
||||
if(!$this->client->tax_data){
|
||||
$this->should_calc_tax = false;
|
||||
return $this;
|
||||
}
|
||||
|
||||
$this->resolveRegions();
|
||||
|
||||
if(!$this->isTaxableRegion())
|
||||
|
Loading…
Reference in New Issue
Block a user