diff --git a/src/ZugferdDocumentReader.php b/src/ZugferdDocumentReader.php index 49076ae9..307773a1 100644 --- a/src/ZugferdDocumentReader.php +++ b/src/ZugferdDocumentReader.php @@ -314,7 +314,7 @@ protected function readContent(string $xmlcontent): ZugferdDocumentReader */ public function getDocumentInformation(?string &$documentno, ?string &$documenttypecode, ?DateTime &$documentdate, ?string &$invoiceCurrency, ?string &$taxCurrency, ?string &$documentname, ?string &$documentlanguage, ?DateTime &$effectiveSpecifiedPeriod): ZugferdDocumentReader { - $documentno = $this->getInvoiceValueByPath("getExchangedDocument.getID", ""); + $documentno = $this->getInvoiceValueByPath("getExchangedDocument.getID.value", ""); $documenttypecode = $this->getInvoiceValueByPath("getExchangedDocument.getTypeCode.value", ""); $documentdate = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPath("getExchangedDocument.getIssueDateTime.getDateTimeString", ""),