Skip to content

Commit

Permalink
Fix result type of DocumentLanguage in ZugferdDocumentReader::getDocu…
Browse files Browse the repository at this point in the history
…mentInformation
  • Loading branch information
HorstOeko committed Oct 23, 2024
1 parent 65ce898 commit 78a896e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ZugferdDocumentReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")
Expand Down

0 comments on commit 78a896e

Please sign in to comment.