Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Profile for XRechnung 2.3 and XRechnung 3.0 #19

Merged
merged 2 commits into from
Sep 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions src/ZugferdProfiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ class ZugferdProfiles
*/
const PROFILE_MINIMUM = 8;

/**
* Internal constant that identifies the XRECHNUNG profile version 2.3 (germany only)
*/
const PROFILE_XRECHNUNG_2_3 = 9;

/**
* Internal constant that identifies the XRECHNUNG profile version 2.3 (germany only)
*/
const PROFILE_XRECHNUNG_3 = 10;

/**
* The definitions of the several profiles
*/
Expand Down Expand Up @@ -173,5 +183,29 @@ class ZugferdProfiles
'xsdfilename' => 'FACTUR-X_MINIMUM.xsd',
'schematronfilename' => 'FACTUR-X_MINIMUM.sch',
],
self::PROFILE_XRECHNUNG_2_3 => [
'name' => 'en16931',
'altname' => 'XRECHNUNG',
'description' => 'The reference profile is based on the CIUS XRechnung, which is maintained by KoSIT. It represents an ' .
'extension of EN 16931-1 with its own business rules, the national German laws and regulations. It is therefore more ' .
'specific than the EN 16931 (COMFORT) profile.',
'contextparameter' => 'urn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_2.3',
'attachmentfilename' => 'xrechnung.xml',
'xmpname' => 'EN 16931',
'xsdfilename' => 'FACTUR-X_EN16931.xsd',
'schematronfilename' => 'FACTUR-X_EN16931.sch',
],
self::PROFILE_XRECHNUNG_3 => [
'name' => 'en16931',
'altname' => 'XRECHNUNG',
'description' => 'The reference profile is based on the CIUS XRechnung, which is maintained by KoSIT. It represents an ' .
'extension of EN 16931-1 with its own business rules, the national German laws and regulations. It is therefore more ' .
'specific than the EN 16931 (COMFORT) profile.',
'contextparameter' => 'urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0',
'attachmentfilename' => 'xrechnung.xml',
'xmpname' => 'EN 16931',
'xsdfilename' => 'FACTUR-X_EN16931.xsd',
'schematronfilename' => 'FACTUR-X_EN16931.sch',
],
];
}