Skip to content

API reference / Quittio \ Core \ Tax

DatedTaxPreset

interface in quittio/core · extends TaxPreset

Quittio\Core\Tax\DatedTaxPreset · Source

A preset whose rate depends on the date of the supply, e.g. a standard rate that was lowered for half a year. The builder resolves it with the supply date of each line (SupplyDate); rate() returns the rate of today.

Methods#

MethodDescription
->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".
->on()The preset as it holds on the date, with the same key.
->rate()VAT rate in percent (BT-152); null for categories without a rate (e.g. O).

category()#

public function category(): VatCategory

inherited from TaxPreset

VAT category (BT-151).

Returns
VatCategory

exemptionReason()#

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

inherited from TaxPreset

Exemption reason text (BT-120), shown in XML and PDF.

ParameterTypeDescription
$locale?string = null
Returns
?string

exemptionReasonCode()#

public function exemptionReasonCode(): VatExemptionReasonCode|RawCode|null

inherited from TaxPreset

VATEX code of the exemption reason (BT-121); null for taxed supplies.

Returns
VatExemptionReasonCode|RawCode|null

key()#

public function key(): string

inherited from TaxPreset

Stable key, prefixed with the country code, e.g. "de.standard".

Returns
string

on()#

public function on(Date $date): TaxPreset

The preset as it holds on the date, with the same key.

ParameterTypeDescription
$dateDate
Returns
TaxPreset

rate()#

public function rate(): ?BigDecimal

inherited from TaxPreset

VAT rate in percent (BT-152); null for categories without a rate (e.g. O).

Returns
?Brick\Math\BigDecimal

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.