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#
| Constant | Value | Description |
|---|---|---|
CODES | ['380', '381', '384', '389', '325', '326', '386', '875', '876', '877'] | Type codes with an own title label ("title_{code}"). |
Methods#
| Method | Description |
|---|---|
::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| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData |
- Returns
string
keyFor()#
public static function keyFor(string $typeCode): string| Parameter | Type | Description |
|---|---|---|
$typeCode | string |
- Returns
string
keys()#
public static function keys(): list<string>- Returns
list<string>– all title label keys
policyTitle()#
public static function policyTitle(
InvoiceData $invoice,
?CountryPack $country,
string $locale,
): ?stringTitle 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.
| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData | |
$country | ?CountryPack | |
$locale | string |
- Returns
?string