mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 18:34:30 -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
|
public function default(): self
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->tax_name1 = '';
|
$this->tax_name1 = 'Tax Exempt';
|
||||||
$this->tax_rate1 = 0;
|
$this->tax_rate1 = 0;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user