API reference / Quittio \ Core \ Enums
VatCategory
string-backed enum in quittio/core · uses HasLabel
Quittio\Core\Enums\VatCategory · Source
VAT category code (BT-95, BT-102, BT-118, BT-151), UNTDID 5305 subset.
Cases#
| Case | Value | Description |
|---|---|---|
StandardRate | 'S' | |
ZeroRated | 'Z' | |
Exempt | 'E' | |
ReverseCharge | 'AE' | |
IntraCommunitySupply | 'K' | |
Export | 'G' | |
NotSubjectToVat | 'O' | |
CanaryIslands | 'L' | |
CeutaMelilla | 'M' | |
TransferredVatItaly | 'B' |
Methods#
| Method | Description |
|---|---|
::isValidCode() | Whether a raw code value is valid according to the official code list. |
->isZeroTax() | Whether the VAT amount is always zero in this category. |
->label() | |
::labelGroup() | |
->requiresExemptionReason() | Whether the category requires an exemption reason (BT-120 or BT-121). |
->requiresRate() | Whether a VAT rate (BT-96, BT-103, BT-119, BT-152) must be given. |
isValidCode()#
public static function isValidCode(string $code): boolWhether a raw code value is valid according to the official code list.
| Parameter | Type | Description |
|---|---|---|
$code | string |
- Returns
bool
isZeroTax()#
public function isZeroTax(): boolWhether the VAT amount is always zero in this category.
- Returns
bool
label()#
public function label(?string $locale = null): string| Parameter | Type | Description |
|---|---|---|
$locale | ?string = null |
- Returns
string
labelGroup()#
public static function labelGroup(): string- Returns
string
requiresExemptionReason()#
public function requiresExemptionReason(): boolWhether the category requires an exemption reason (BT-120 or BT-121).
- Returns
bool
requiresRate()#
public function requiresRate(): boolWhether a VAT rate (BT-96, BT-103, BT-119, BT-152) must be given.
- Returns
bool