Add catch for vat not registered users

This commit is contained in:
David Bomba 2025-03-05 08:06:23 +11:00
parent b1eb44eda5
commit 70cb694bb2
1 changed files with 4 additions and 0 deletions

View File

@ -272,6 +272,10 @@ class ZugferdEDocument extends AbstractService
$this->tax_code = ZugferdDutyTaxFeeCategories::VAT_EXEMPT_FOR_EEA_INTRACOMMUNITY_SUPPLY_OF_GOODS_AND_SERVICES; $this->tax_code = ZugferdDutyTaxFeeCategories::VAT_EXEMPT_FOR_EEA_INTRACOMMUNITY_SUPPLY_OF_GOODS_AND_SERVICES;
$this->exemption_reason_code = "VATEX-EU-IC"; $this->exemption_reason_code = "VATEX-EU-IC";
} }
else {
$this->tax_code = ZugferdDutyTaxFeeCategories::EXEMPT_FROM_TAX;
$this->exemption_reason_code = "VATNOTREG";
}
return $this; return $this;