Zum Inhalt springen

API reference / Quittio \ Core \ Enums

TaxPointDateCode

string-backed enum in quittio/core

Quittio\Core\Enums\TaxPointDateCode · Source

Value added tax point date code (BT-8).

The semantic value is the same in both syntaxes, but CII uses UNTDID 2475 (5, 29, 72) and UBL uses UNTDID 2005 (3, 35, 432).

Cases#

CaseValueDescription
IssueDate'issue_date'
DeliveryDate'delivery_date'
PaymentDate'payment_date'

Methods#

MethodDescription
->ciiCode()The code of this date in CII (UNTDID 2475: 5, 29, 72).
::fromCii()The case for a CII code (UNTDID 2475); a RawCode for an unknown code.
::fromUbl()The case for a UBL code (UNTDID 2005); a RawCode for an unknown code.
->ublCode()The code of this date in UBL (UNTDID 2005: 3, 35, 432).

ciiCode()#

public function ciiCode(): string

The code of this date in CII (UNTDID 2475: 5, 29, 72).

Returns
string

fromCii()#

public static function fromCii(string $code): self|RawCode

static

The case for a CII code (UNTDID 2475); a RawCode for an unknown code.

ParameterTypeDescription
$codestring
Returns
self|RawCode

fromUbl()#

public static function fromUbl(string $code): self|RawCode

static

The case for a UBL code (UNTDID 2005); a RawCode for an unknown code.

ParameterTypeDescription
$codestring
Returns
self|RawCode

ublCode()#

public function ublCode(): string

The code of this date in UBL (UNTDID 2005: 3, 35, 432).

Returns
string

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