Fixes for tax all rule

This commit is contained in:
David Bomba 2023-04-03 08:02:38 +10:00
parent bd7722f6f0
commit 641502ff59

View File

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