API reference / Quittio \ Core \ Tax
TaxPreset
interface in quittio/core
Quittio\Core\Tax\TaxPreset · Source
A named VAT treatment provided by a country pack, e.g. "standard rate 19 %" or "small business exemption". Presets set category, rate, VATEX code and legal note text.
Methods#
| Method | Description |
|---|---|
->category() | VAT category (BT-151). |
->exemptionReason() | Exemption reason text (BT-120), shown in XML and PDF. |
->exemptionReasonCode() | VATEX code of the exemption reason (BT-121); null for taxed supplies. |
->key() | Stable key, prefixed with the country code, e.g. "de.standard". |
->rate() | VAT rate in percent (BT-152); null for categories without a rate (e.g. O). |
category()#
public function category(): VatCategoryVAT category (BT-151).
- Returns
VatCategory
exemptionReason()#
public function exemptionReason(?string $locale = null): ?stringExemption reason text (BT-120), shown in XML and PDF.
| Parameter | Type | Description |
|---|---|---|
$locale | ?string = null |
- Returns
?string
exemptionReasonCode()#
public function exemptionReasonCode(): VatExemptionReasonCode|RawCode|nullVATEX code of the exemption reason (BT-121); null for taxed supplies.
- Returns
VatExemptionReasonCode|RawCode|null
key()#
public function key(): stringStable key, prefixed with the country code, e.g. "de.standard".
- Returns
string
rate()#
public function rate(): ?BigDecimalVAT rate in percent (BT-152); null for categories without a rate (e.g. O).
- Returns
?Brick\Math\BigDecimal