InvoiceTitle
in package
FinalYes
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).
Table of Contents
Constants
- CODES : array<string|int, mixed> = ['380', '381', '384', '389', '325', '326', '386...
- Type codes with an own title label ("title_{code}").
Methods
- key() : string
- keyFor() : string
- keys() : array<int, string>
- policyTitle() : string|null
- 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.
Constants
CODES
Type codes with an own title label ("title_{code}").
public
array<string|int, mixed>
CODES
= ['380', '381', '384', '389', '325', '326', '386', '875', '876', '877']
Methods
key()
public
static key(InvoiceData $invoice) : string
Parameters
- $invoice : InvoiceData
Return values
stringkeyFor()
public
static keyFor(string $typeCode) : string
Parameters
- $typeCode : string
Return values
stringkeys()
public
static keys() : array<int, string>
Return values
array<int, string> —all title label 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.
public
static policyTitle(InvoiceData $invoice, CountryPack|null $country, string $locale) : string|null
Parameters
- $invoice : InvoiceData
- $country : CountryPack|null
- $locale : string