Skip to content

Commit

Permalink
#159 Pre-assignment of 'BusinessProcessSpecifiedDocumentContextParame…
Browse files Browse the repository at this point in the history
…ter' for profile EXTENDED

#159 Pre-assignment of 'BusinessProcessSpecifiedDocumentContextParameter' for profile EXTENDED
  • Loading branch information
horstoeko authored Nov 5, 2024
2 parents 74bd98c + d209690 commit da21b65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ZugferdProfiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class ZugferdProfiles
'item level to support warehousing, etc.)',
'contextparameter' => 'urn:cen.eu:en16931:2017#conformant#urn:factur-x.eu:1p0:extended',
'alternativecontextparameters' => ['urn:cen.eu:en16931:2017#conformant#urn:zugferd.de:2p0:extended'],
'businessprocess' => null,
'businessprocess' => 'urn:fdc:peppol.eu:2017:poacc:billing:01:1.0',
'attachmentfilename' => 'factur-x.xml',
'xmpname' => 'EXTENDED',
'xsdfilename' => 'FACTUR-X_EXTENDED.xsd',
Expand Down
4 changes: 2 additions & 2 deletions tests/testcases/BuilderExtendedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ public function testSetDocumentInformation(): void
public function testSetDocumentBusinessProcess(): void
{
$this->disableRenderXmlContent();
$this->assertXPathNotExists('/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:BusinessProcessSpecifiedDocumentContextParameter/ram:ID');
$this->assertXPathValueWithIndex('/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:BusinessProcessSpecifiedDocumentContextParameter/ram:ID', 0, 'urn:fdc:peppol.eu:2017:poacc:billing:01:1.0');

(self::$document)->setDocumentBusinessProcess("");
$this->disableRenderXmlContent();
$this->assertXPathNotExists('/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:BusinessProcessSpecifiedDocumentContextParameter/ram:ID');
$this->assertXPathValueWithIndex('/rsm:CrossIndustryInvoice/rsm:ExchangedDocumentContext/ram:BusinessProcessSpecifiedDocumentContextParameter/ram:ID', 0, 'urn:fdc:peppol.eu:2017:poacc:billing:01:1.0');

(self::$document)->setDocumentBusinessProcess("GENERAL INVOICE");
$this->disableRenderXmlContent();
Expand Down

0 comments on commit da21b65

Please sign in to comment.