mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for tax all rule
This commit is contained in:
parent
bd7722f6f0
commit
641502ff59
@ -84,14 +84,21 @@ class Rule extends BaseRule implements RuleInterface
|
|||||||
public function tax($type): self
|
public function tax($type): self
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($this->client->is_tax_exempt)
|
|
||||||
|
if ($this->client->is_tax_exempt) {
|
||||||
return $this->taxExempt();
|
return $this->taxExempt();
|
||||||
|
} elseif ($this->client->company->tax_data->regions->EU->tax_all) {
|
||||||
|
|
||||||
|
$this->tax_rate1 = $this->vat_rate;
|
||||||
|
$this->tax_name1 = "MwSt.";
|
||||||
|
|
||||||
|
|
||||||
|
return $this;
|
||||||
|
}
|
||||||
|
|
||||||
if ($type)
|
if ($type)
|
||||||
return $this->taxByType($type);
|
return $this->taxByType($type);
|
||||||
|
|
||||||
$this->tax_rate1 = $this->vat_rate;
|
|
||||||
$this->tax_name1 = "MwSt.";
|
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user