Refactor for taxes

This commit is contained in:
David Bomba 2023-03-25 11:02:43 +11:00
parent 40f53e3dde
commit 3ed45ad27f
2 changed files with 1 additions and 4 deletions

View File

@ -153,7 +153,7 @@ class Rule implements RuleInterface
public function default(): self public function default(): self
{ {
$this->tax_name1 = ''; $this->tax_name1 = 'Tax Exempt';
$this->tax_rate1 = 0; $this->tax_rate1 = 0;
return $this; return $this;

View File

@ -104,7 +104,6 @@ class InvoiceItemSum
{ {
if (!$this->invoice->company->calculate_taxes || $this->client->is_tax_exempt) { if (!$this->invoice->company->calculate_taxes || $this->client->is_tax_exempt) {
$this->calc_tax = false; $this->calc_tax = false;
nlog("returning false");
return $this; return $this;
} }
@ -115,8 +114,6 @@ class InvoiceItemSum
$this->rule = new $class($tax_data); $this->rule = new $class($tax_data);
nlog("returning true");
$this->calc_tax = true; $this->calc_tax = true;
return $this; return $this;