Zum Inhalt springen

API reference / Quittio \ Country \ DE \ Profiles \ XRechnung

XRechnung30Extension

final class in quittio/country-de · extends XRechnung30 · implements ExtendsCodeLists, ReplacesRules, SupportsExtensionFields, SupportsSubLines

Quittio\Country\DE\Profiles\XRechnung\XRechnung30Extension · Source

XRechnung 3.0 extension: adds sub invoice lines (UBL only) and third party payments. Choose it explicitly with ->profile('xrechnung-extension'): neither the automatic format choice nor the profile xrechnung switch to it when extension data is used; with xrechnung such data is reported as an error.

Constants#

ConstantValueDescription
SPECIFICATION_ID'urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0#conformant#urn:xeinkauf.de:kosit:extension:xrechnung_3.0'

Methods#

MethodDescription
->additionalCodes()The extension accepts the identifier schemes XR01 to XR03, checked by BR-DEX-04 to BR-DEX-08 (XRechnungRules), which replace the code list rules (see replacedRules()), and attachments with the MIME code application/xml (BR-DEX-01 instead of BR-CL-24).
->afRelationship()
->defaultBusinessProcess()
->embeddedFilename()
->extensions()The fields of the XRechnung extension (Mapping\Attributes\XRechnungExtensionOnly).
->isEn16931Compliant()
->key()
->level()
->name()
->replacedRules()As in the official validator configuration, where the replaced rules are only an information: BR-DEX-04 to BR-DEX-08 replace BR-CL-10, -11, -21, -25 and -26 (identifier schemes with XR01 to XR03); in UBL BR-DEX-09 replaces BR-CO-16 (amount due with third party payments) and BR-DEX-02 replaces QUITTIO-SUBLINES (sum of the sub lines).
->requiredBusinessTerms()
->rules()
->specificationId()
->supportsStandard()
->supportsSyntax()Whether the profile is an XML-only CIUS that is not embedded into PDFs by default.
->syntaxes()
->xmpConformanceLevel()ZUGFeRD 2.x names XRechnung documents, also with the extension, "XRECHNUNG".
->xmpDescription()
->xmpVersion()The XRechnung version as fx:Version, as ZUGFeRD 2.x prescribes for the level XRECHNUNG.

additionalCodes()#

public function additionalCodes(string $codeList): array

The extension accepts the identifier schemes XR01 to XR03, checked by BR-DEX-04 to BR-DEX-08 (XRechnungRules), which replace the code list rules (see replacedRules()), and attachments with the MIME code application/xml (BR-DEX-01 instead of BR-CL-24).

ParameterTypeDescription
$codeListstring
Returns
array

afRelationship()#

public function afRelationship(): ?string

inherited from XRechnung30

Returns
?string

defaultBusinessProcess()#

public function defaultBusinessProcess(): ?string

inherited from XRechnung30

Returns
?string

embeddedFilename()#

public function embeddedFilename(): ?string

inherited from XRechnung30

Returns
?string

extensions()#

public function extensions(): array

The fields of the XRechnung extension (Mapping\Attributes\XRechnungExtensionOnly).

Returns
array

isEn16931Compliant()#

public function isEn16931Compliant(): bool

inherited from XRechnung30

Returns
bool

key()#

public function key(): string
Returns
string

level()#

public function level(): ProfileLevel

inherited from XRechnung30

Returns
ProfileLevel

name()#

public function name(): string
Returns
string

replacedRules()#

public function replacedRules(?Syntax $syntax): array

As in the official validator configuration, where the replaced rules are only an information: BR-DEX-04 to BR-DEX-08 replace BR-CL-10, -11, -21, -25 and -26 (identifier schemes with XR01 to XR03); in UBL BR-DEX-09 replaces BR-CO-16 (amount due with third party payments) and BR-DEX-02 replaces QUITTIO-SUBLINES (sum of the sub lines).

ParameterTypeDescription
$syntax?Syntax
Returns
array

requiredBusinessTerms()#

public function requiredBusinessTerms(): array

inherited from XRechnung30

Returns
array

rules()#

public function rules(): array

inherited from XRechnung30

Returns
array

specificationId()#

public function specificationId(
    StandardVersion $version = \Quittio\Core\Standards\StandardVersion::En16931_2017,
): string
ParameterTypeDescription
$versionStandardVersion = \Quittio\Core\Standards\StandardVersion::En16931_2017
Returns
string

supportsStandard()#

public function supportsStandard(StandardVersion $version): bool

inherited from XRechnung30

ParameterTypeDescription
$versionStandardVersion
Returns
bool

supportsSyntax()#

public function supportsSyntax(Syntax $syntax): bool

inherited from XRechnung30

Whether the profile is an XML-only CIUS that is not embedded into PDFs by default.

ParameterTypeDescription
$syntaxSyntax
Returns
bool

syntaxes()#

public function syntaxes(): array

inherited from XRechnung30

Returns
array

xmpConformanceLevel()#

public function xmpConformanceLevel(): string

ZUGFeRD 2.x names XRechnung documents, also with the extension, "XRECHNUNG".

Returns
string

xmpDescription()#

public function xmpDescription(): string

inherited from XRechnung30

Returns
string

xmpVersion()#

public function xmpVersion(): string

inherited from XRechnung30

The XRechnung version as fx:Version, as ZUGFeRD 2.x prescribes for the level XRECHNUNG.

Returns
string

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