mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-09-20 08:21:34 +02:00
Return early if we are not in a taxable region
This commit is contained in:
parent
0b01e7585e
commit
4dba4ec35a
@ -140,8 +140,12 @@ class BaseRule implements RuleInterface
|
||||
|
||||
$this->client = $invoice->client;
|
||||
|
||||
$this->resolveRegions()
|
||||
->configTaxData();
|
||||
$this->resolveRegions();
|
||||
|
||||
if(!$this->isTaxableRegion())
|
||||
return $this;
|
||||
|
||||
$this->configTaxData();
|
||||
|
||||
$this->tax_data = new Response($this->invoice->tax_data);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user