restrict auto taxes for free hosted users

This commit is contained in:
David Bomba 2023-05-24 21:25:51 +10:00
parent 16a24feb01
commit f09d90aa27

View File

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