1
0
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:
David Bomba 2023-05-17 15:45:06 +10:00
parent 0b01e7585e
commit 4dba4ec35a

View File

@ -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);