diff --git a/examples/OrderBuilderComfortSimple.php b/examples/OrderBuilderComfortSimple.php index affc47e..ff9da06 100644 --- a/examples/OrderBuilderComfortSimple.php +++ b/examples/OrderBuilderComfortSimple.php @@ -7,14 +7,14 @@ require dirname(__FILE__) . "/../vendor/autoload.php"; -$dt = \DateTime::createFromFormat("Ymd", "20221221"); +$dt = \DateTime::createFromFormat("Ymd", "20221225"); $document = OrderDocumentBuilder::CreateNew( - OrderProfiles::PROFILE_EXTENDED + OrderProfiles::PROFILE_COMFORT ); $document - ->setIsDocumentCopy(true) + ->setIsDocumentCopy(false) ->setIsTestDocument(false) ->setDocumentBusinessProcessSpecifiedDocumentContextParameter("A1") diff --git a/tests/assets/reader-order-x-comfort.pdf b/tests/assets/reader-order-x-comfort.pdf index 6f539fd..4a44786 100644 Binary files a/tests/assets/reader-order-x-comfort.pdf and b/tests/assets/reader-order-x-comfort.pdf differ diff --git a/tests/testcases/OrderDocumentPdfReaderComfortTest.php b/tests/testcases/OrderDocumentPdfReaderComfortTest.php index 5543c25..f3a057b 100644 --- a/tests/testcases/OrderDocumentPdfReaderComfortTest.php +++ b/tests/testcases/OrderDocumentPdfReaderComfortTest.php @@ -90,7 +90,7 @@ public function testGetDocumentInformation(): void $this->assertEquals("PO123456789", $documentNo); $this->assertEquals(OrderDocumentTypes::ORDER, $documentTypeCode); - $this->assertEquals("26.12.2022", $documentDate->format('d.m.Y')); + $this->assertEquals("25.12.2022", $documentDate->format('d.m.Y')); $this->assertEquals("EUR", $documentCurrency); $this->assertEquals("Doc Name", $documentName); $this->assertEmpty($documentLanguageId); @@ -108,7 +108,7 @@ public function testGetIsDocumentCopy(): void self::$document->getIsDocumentCopy($documentIsCopy); $this->assertNotNull($documentIsCopy); - $this->assertTrue($documentIsCopy); + $this->assertFalse($documentIsCopy); } /** @@ -1186,9 +1186,9 @@ public function testGetDocumentRequestedDeliverySupplyChainEvent(): void $this->assertNotNull($occurrenceDateTime); $this->assertNotNull($startDateTime); $this->assertNotNull($endDateTime); - $this->assertEquals("26.12.2022", $occurrenceDateTime->format('d.m.Y')); - $this->assertEquals("26.12.2022", $startDateTime->format('d.m.Y')); - $this->assertEquals("26.12.2022", $endDateTime->format('d.m.Y')); + $this->assertEquals("25.12.2022", $occurrenceDateTime->format('d.m.Y')); + $this->assertEquals("25.12.2022", $startDateTime->format('d.m.Y')); + $this->assertEquals("25.12.2022", $endDateTime->format('d.m.Y')); } /**