1
0
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:
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->resolveRegions()
->configTaxData();
$this->resolveRegions();
if(!$this->isTaxableRegion())
return $this;
$this->configTaxData();
$this->tax_data = new Response($this->invoice->tax_data);