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#
| 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". |
->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(): 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
on()#
public function on(Date $date): TaxPresetThe preset as it holds on the date, with the same key.
| Parameter | Type | Description |
|---|---|---|
$date | Date |
- Returns
TaxPreset
rate()#
public function rate(): ?BigDecimalVAT rate in percent (BT-152); null for categories without a rate (e.g. O).
- Returns
?Brick\Math\BigDecimal