Zum Inhalt springen

API reference / Quittio \ Country \ CH \ Tax

CustomVatPreset

final readonly class in quittio/country-ch · implements TaxPreset

Quittio\Country\CH\Tax\CustomVatPreset · Source

Ad-hoc preset of the Swiss pack, e.g. from VatPreset::exempt(). Like the VatPreset cases, its text defaults to German when the invoice has no locale; other locales without a text fall back to English.

Methods#

MethodDescription
->__construct()
->category()
->exemptionReason()
->exemptionReasonCode()
->key()
->rate()

__construct()#

public function __construct(CustomTaxPreset $preset)
ParameterTypeDescription
$presetCustomTaxPreset

category()#

public function category(): VatCategory
Returns
VatCategory

exemptionReason()#

public function exemptionReason(?string $locale = null): ?string
ParameterTypeDescription
$locale?string = null
Returns
?string

exemptionReasonCode()#

public function exemptionReasonCode(): VatExemptionReasonCode|RawCode|null
Returns
VatExemptionReasonCode|RawCode|null

key()#

public function key(): string
Returns
string

rate()#

public function rate(): ?BigDecimal
Returns
?Brick\Math\BigDecimal

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.