Zum Inhalt springen

API reference / Quittio \ Country \ AT \ Texts

LegalTexts

final class in quittio/country-at

Quittio\Country\AT\Texts\LegalTexts · Source

Mandatory and informational texts for Austrian invoices.

The notices that a tax preset also states (reverse charge, intra-community supply, export, small business) are the preset's exemption reason texts, so that one notice has one wording.

Not reviewed by a tax adviser yet (see the README of the pack).

Constants#

ConstantValueDescription
DEFAULT_INTEREST'default_interest'Description of a default interest charge between businesses (DefaultInterest).
DEFAULT_INTEREST_CONSUMER'default_interest_consumer'Description of a default interest charge of a consumer (DefaultInterest).
EXPORT'export'
FALLBACK_LOCALE'de'
INTRA_COMMUNITY_SUPPLY'intra_community_supply'
REVERSE_CHARGE'reverse_charge'
SELF_BILLING'self_billing'Label of a self-billed invoice (section 11 (8) no. 3 UStG).
SMALL_BUSINESS'small_business'

Methods#

MethodDescription
::catalog()The texts in every locale the pack ships, from its language files through the active translator, so that lang/vendor/quittio-at overrides them in Laravel.
::localeOf()The catalog locale text() uses for $key and $locale: $locale itself, else its language, else the fallback German.
::text()The text of $key in $locale, in its language (e.g. English for "en_GB"), or else in German.

catalog()#

public static function catalog(): LegalTextCatalog

static

The texts in every locale the pack ships, from its language files through the active translator, so that lang/vendor/quittio-at overrides them in Laravel.

Returns
LegalTextCatalog

localeOf()#

public static function localeOf(string $key, string $locale): string

static

The catalog locale text() uses for $key and $locale: $locale itself, else its language, else the fallback German.

ParameterTypeDescription
$keystring
$localestring
Returns
string

text()#

public static function text(
    string $key,
    string $locale = self::FALLBACK_LOCALE,
    array<string, string> $replace = [],
): string

static

The text of $key in $locale, in its language (e.g. English for "en_GB"), or else in German.

ParameterTypeDescription
$keystring
$localestring = self::FALLBACK_LOCALE
$replacearray<string, string> = []
Returns
string

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