mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 13:12:50 +01: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->client = $invoice->client;
|
||||||
|
|
||||||
$this->resolveRegions()
|
$this->resolveRegions();
|
||||||
->configTaxData();
|
|
||||||
|
if(!$this->isTaxableRegion())
|
||||||
|
return $this;
|
||||||
|
|
||||||
|
$this->configTaxData();
|
||||||
|
|
||||||
$this->tax_data = new Response($this->invoice->tax_data);
|
$this->tax_data = new Response($this->invoice->tax_data);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user