mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:27:16 -04:00
Refactor for taxes
This commit is contained in:
parent
40f53e3dde
commit
3ed45ad27f
@ -153,7 +153,7 @@ class Rule implements RuleInterface
|
||||
public function default(): self
|
||||
{
|
||||
|
||||
$this->tax_name1 = '';
|
||||
$this->tax_name1 = 'Tax Exempt';
|
||||
$this->tax_rate1 = 0;
|
||||
|
||||
return $this;
|
||||
|
@ -104,7 +104,6 @@ class InvoiceItemSum
|
||||
{
|
||||
if (!$this->invoice->company->calculate_taxes || $this->client->is_tax_exempt) {
|
||||
$this->calc_tax = false;
|
||||
nlog("returning false");
|
||||
return $this;
|
||||
}
|
||||
|
||||
@ -115,8 +114,6 @@ class InvoiceItemSum
|
||||
|
||||
$this->rule = new $class($tax_data);
|
||||
|
||||
nlog("returning true");
|
||||
|
||||
$this->calc_tax = true;
|
||||
|
||||
return $this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user