diff --git a/src/ZugferdDocumentReader.php b/src/ZugferdDocumentReader.php index 307773a1..406ee268 100644 --- a/src/ZugferdDocumentReader.php +++ b/src/ZugferdDocumentReader.php @@ -323,8 +323,7 @@ public function getDocumentInformation(?string &$documentno, ?string &$documentt $invoiceCurrency = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getInvoiceCurrencyCode.value", ""); $taxCurrency = $this->getInvoiceValueByPath("getSupplyChainTradeTransaction.getApplicableHeaderTradeSettlement.getTaxCurrencyCode.value", ""); $documentname = $this->getInvoiceValueByPath("getExchangedDocument.getName.value", ""); - $documentlanguages = $this->getInvoiceValueByPath("getExchangedDocument.getLanguageID", []); - $documentlanguage = (isset($documentlanguages[0]) ? $this->getObjectHelper()->tryCallByPathAndReturn($documentlanguages[0], "value") : ""); + $documentlanguage = $this->getInvoiceValueByPath("getExchangedDocument.getLanguageID.value", ""); $effectiveSpecifiedPeriod = $this->getObjectHelper()->toDateTime( $this->getInvoiceValueByPath("getExchangedDocument.getEffectiveSpecifiedPeriod.getDateTimeString", ""), $this->getInvoiceValueByPath("getExchangedDocument.getEffectiveSpecifiedPeriod.getDateTimeString.getFormat", "")