DatedTaxPreset
extends
TaxPreset
in
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.
Table of Contents
Methods
- category() : VatCategory
- VAT category (BT-151).
- exemptionReason() : string|null
- Exemption reason text (BT-120), shown in XML and PDF.
- exemptionReasonCode() : VatExemptionReasonCode|RawCode|null
- VATEX code of the exemption reason (BT-121); null for taxed supplies.
- key() : string
- Stable key, prefixed with the country code, e.g. "de.standard".
- on() : TaxPreset
- The preset as it holds on the date, with the same key.
- rate() : BigDecimal|null
- VAT rate in percent (BT-152); null for categories without a rate (e.g. O).
Methods
category()
VAT category (BT-151).
public
category() : VatCategory
Return values
VatCategoryexemptionReason()
Exemption reason text (BT-120), shown in XML and PDF.
public
exemptionReason([string|null $locale = null ]) : string|null
Parameters
- $locale : string|null = null
Return values
string|nullexemptionReasonCode()
VATEX code of the exemption reason (BT-121); null for taxed supplies.
public
exemptionReasonCode() : VatExemptionReasonCode|RawCode|null
Return values
VatExemptionReasonCode|RawCode|nullkey()
Stable key, prefixed with the country code, e.g. "de.standard".
public
key() : string
Return values
stringon()
The preset as it holds on the date, with the same key.
public
on(Date $date) : TaxPreset
Parameters
- $date : Date
Return values
TaxPresetrate()
VAT rate in percent (BT-152); null for categories without a rate (e.g. O).
public
rate() : BigDecimal|null