Skip to content

API reference / Quittio \ Core \ View

InvoiceTitle

final class in quittio/core

Quittio\Core\View\InvoiceTitle · Source

Label key of the document title for a type code (BT-3).

Codes without an own title use the title of their family: self-billed documents are a "Gutschrift" (section 14 (2) sentence 5 UStG), commercial credit notes share the title of code 381, which must not be "Gutschrift" (BMF letter of 25 October 2013).

Constants#

ConstantValueDescription
CODES['380', '381', '384', '389', '325', '326', '386', '875', '876', '877']Type codes with an own title label ("title_{code}").

Methods#

MethodDescription
::key()
::keyFor()
::keys()
::policyTitle()Title of a self-billed document from the correction policy of the country pack (CorrectionPolicy title "self_billed", e.g. "Gutschrift"), like the titles of cancellations and corrections; null for other documents or without such a title (then the label of the type code applies). A title of the presentation wins over both.

key()#

public static function key(InvoiceData $invoice): string

static

ParameterTypeDescription
$invoiceInvoiceData
Returns
string

keyFor()#

public static function keyFor(string $typeCode): string

static

ParameterTypeDescription
$typeCodestring
Returns
string

keys()#

public static function keys(): list<string>

static

Returns
list<string> – all title label keys

policyTitle()#

public static function policyTitle(
    InvoiceData $invoice,
    ?CountryPack $country,
    string $locale,
): ?string

static

Title of a self-billed document from the correction policy of the country pack (CorrectionPolicy title "self_billed", e.g. "Gutschrift"), like the titles of cancellations and corrections; null for other documents or without such a title (then the label of the type code applies). A title of the presentation wins over both.

ParameterTypeDescription
$invoiceInvoiceData
$country?CountryPack
$localestring
Returns
?string

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