From f09d90aa27fcd17e6178d8a70cca94f79035c824 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 24 May 2023 21:25:51 +1000 Subject: [PATCH] restrict auto taxes for free hosted users --- app/Helpers/Invoice/InvoiceItemSum.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Helpers/Invoice/InvoiceItemSum.php b/app/Helpers/Invoice/InvoiceItemSum.php index 3be7e878ceb8..2e5cca8bd00c 100644 --- a/app/Helpers/Invoice/InvoiceItemSum.php +++ b/app/Helpers/Invoice/InvoiceItemSum.php @@ -169,7 +169,8 @@ class InvoiceItemSum private function shouldCalculateTax(): self { - if (!$this->invoice->company->calculate_taxes) { + // + if (!$this->invoice->company->calculate_taxes || !$this->invoice->company->account->isFreeHostedClient()) { $this->calc_tax = false; return $this; }