Repository: horstoeko/zugferd (php)

Issue:
[QUESTION] ConformanceLevel for PROFILE_XRECHNUNG_3 should be set to XRECHNUNG?
### Before Submitting an Issue
To help us assist you efficiently, we require confirmation of the following:
- [x] I have read the [documentation](https://github.com/horstoeko/zugferd/wiki) and could not find a solution to my issue.
- [x] I have searched open and closed [issues](https://github.com/horstoeko/zugferd/issues) to ensure my issue has not already been reported.

**Describe the bug**
PDF/A-3 Documents with `ZugferdProfiles::PROFILE_XRECHNUNG_3` reports a ConformanceLevel of `'EN 16931'`. Should this not be `'XRECHNUNG'` due to conformance with EN 16931 AND German federal standards?

**To Reproduce**
Steps to reproduce the behavior:
```php
$document = ZugferdDocumentBuilder::createNew(ZugferdProfiles::PROFILE_XRECHNUNG_3);
$pdfCreator = new ZugferdDocumentPdfBuilder($documentBuilder, $pdf);
$document = $pdfCreator->generateDocument();
```

**Expected behavior**
A clear and concise description of what you expected to happen.
`<ConformanceLevel>XRECHNUNG</ConformanceLevel>`

What happens?
`<ConformanceLevel>EN 16931</ConformanceLevel>`

Pull request description:
#286 Changed PDF Conformancelevel for Profile XRechnung to "XRECHNUNG"
# Description

Changed PDF Conformancelevel for Profile XRechnung to "XRECHNUNG"

Fixes #286 

## Type of change

Please delete options that are not relevant.

- [X] New feature (non-breaking change which adds functionality)

Patch:
diff --git a/src/ZugferdProfiles.php b/src/ZugferdProfiles.php
index f479ae2..a2e9dcb 100644
--- a/src/ZugferdProfiles.php
+++ b/src/ZugferdProfiles.php
@@ -146,7 +146,7 @@ class ZugferdProfiles
             'alternativecontextparameters' => [],
             'businessprocess' => null,
             'attachmentfilename' => 'xrechnung.xml',
-            'xmpname' => 'EN 16931',
+            'xmpname' => 'XRECHNUNG',
             'xsdfilename' => 'FACTUR-X_EN16931.xsd',
             'schematronfilename' => 'FACTUR-X_EN16931.sch',
             'xsltfilename' => "FACTUR-X_EN16931.xslt"
@@ -161,7 +161,7 @@ class ZugferdProfiles
             'alternativecontextparameters' => [],
             'businessprocess' => null,
             'attachmentfilename' => 'xrechnung.xml',
-            'xmpname' => 'EN 16931',
+            'xmpname' => 'XRECHNUNG',
             'xsdfilename' => 'FACTUR-X_EN16931.xsd',
             'schematronfilename' => 'FACTUR-X_EN16931.sch',
             'xsltfilename' => "FACTUR-X_EN16931.xslt"
@@ -176,7 +176,7 @@ class ZugferdProfiles
             'alternativecontextparameters' => [],
             'businessprocess' => null,
             'attachmentfilename' => 'xrechnung.xml',
-            'xmpname' => 'EN 16931',
+            'xmpname' => 'XRECHNUNG',
             'xsdfilename' => 'FACTUR-X_EN16931.xsd',
             'schematronfilename' => 'FACTUR-X_EN16931.sch',
             'xsltfilename' => "FACTUR-X_EN16931.xslt"
@@ -191,7 +191,7 @@ class ZugferdProfiles
             'alternativecontextparameters' => [],
             'businessprocess' => null,
             'attachmentfilename' => 'xrechnung.xml',
-            'xmpname' => 'EN 16931',
+            'xmpname' => 'XRECHNUNG',
             'xsdfilename' => 'FACTUR-X_EN16931.xsd',
             'schematronfilename' => 'FACTUR-X_EN16931.sch',
             'xsltfilename' => "FACTUR-X_EN16931.xslt"
@@ -220,7 +220,7 @@ class ZugferdProfiles
             'alternativecontextparameters' => [],
             'businessprocess' => null,
             'attachmentfilename' => 'xrechnung.xml',
-            'xmpname' => 'EN 16931',
+            'xmpname' => 'XRECHNUNG',
             'xsdfilename' => 'FACTUR-X_EN16931.xsd',
             'schematronfilename' => 'FACTUR-X_EN16931.sch',
             'xsltfilename' => "FACTUR-X_EN16931.xslt"
@@ -235,7 +235,7 @@ class ZugferdProfiles
             'alternativecontextparameters' => [],
             'businessprocess' => 'urn:fdc:peppol.eu:2017:poacc:billing:01:1.0',
             'attachmentfilename' => 'xrechnung.xml',
-            'xmpname' => 'EN 16931',
+            'xmpname' => 'XRECHNUNG',
             'xsdfilename' => 'FACTUR-X_EN16931.xsd',
             'schematronfilename' => 'FACTUR-X_EN16931.sch',
             'xsltfilename' => "FACTUR-X_EN16931.xslt"


Test patch:
diff --git a/tests/testcases/ReaderXRechnungAttachedBinaryObjectTest.php b/tests/testcases/ReaderXRechnungAttachedBinaryObjectTest.php
index 61c51fd..dbc40c4 100644
--- a/tests/testcases/ReaderXRechnungAttachedBinaryObjectTest.php
+++ b/tests/testcases/ReaderXRechnungAttachedBinaryObjectTest.php
@@ -41,7 +41,7 @@ class ReaderXRechnungAttachedBinaryObjectTest extends TestCase
         $this->assertEquals('XRECHNUNG', self::$document->getProfileDefinitionParameter('altname'));
         $this->assertEquals('urn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_2.0', self::$document->getProfileDefinitionParameter('contextparameter'));
         $this->assertEquals('xrechnung.xml', self::$document->getProfileDefinitionParameter('attachmentfilename'));
-        $this->assertEquals('EN 16931', self::$document->getProfileDefinitionParameter('xmpname'));
+        $this->assertEquals('XRECHNUNG', self::$document->getProfileDefinitionParameter('xmpname'));
         $this->expectNoticeOrWarningExt(
             function () {
                 self::$document->getProfileDefinitionParameter('unknownparameter');
diff --git a/tests/testcases/ReaderXRechnungTest.php b/tests/testcases/ReaderXRechnungTest.php
index 96b3cd9..085d79a 100644
--- a/tests/testcases/ReaderXRechnungTest.php
+++ b/tests/testcases/ReaderXRechnungTest.php
@@ -40,7 +40,7 @@ class ReaderXRechnungTest extends TestCase
         $this->assertEquals('XRECHNUNG', self::$document->getProfileDefinitionParameter('altname'));
         $this->assertEquals('urn:cen.eu:en16931:2017#compliant#urn:xoev-de:kosit:standard:xrechnung_1.2', self::$document->getProfileDefinitionParameter('contextparameter'));
         $this->assertEquals('xrechnung.xml', self::$document->getProfileDefinitionParameter('attachmentfilename'));
-        $this->assertEquals('EN 16931', self::$document->getProfileDefinitionParameter('xmpname'));
+        $this->assertEquals('XRECHNUNG', self::$document->getProfileDefinitionParameter('xmpname'));
         $this->expectNoticeOrWarningExt(
             function () {
                 self::$document->getProfileDefinitionParameter('unknownparameter');