diff --git a/src/Invoice.php b/src/Invoice.php index 141d9d9..ff3f39e 100644 --- a/src/Invoice.php +++ b/src/Invoice.php @@ -40,6 +40,7 @@ class Invoice implements XmlSerializable, XmlDeserializable private $additionalDocumentReferences = []; private $projectReference; private $documentCurrencyCode = "EUR"; + private $taxCurrencyCode; private $buyerReference; private $accountingCostCode; private $invoicePeriod; @@ -180,6 +181,24 @@ public function setDocumentCurrencyCode(?string $currencyCode = "EUR") return $this; } + /** + * @return string + */ + public function getTaxCurrencyCode(): ?string + { + return $this->taxCurrencyCode; + } + + /** + * @param mixed $currencyCode + * @return static + */ + public function setTaxCurrencyCode(?string $currencyCode) + { + $this->taxCurrencyCode = $currencyCode; + return $this; + } + /** * @return int */ @@ -1010,6 +1029,12 @@ protected static function deserializedTag(array $mixedContent) $collection, ), ) + ->setTaxCurrencyCode( + ReaderHelper::getTagValue( + Schema::CBC . "TaxCurrencyCode", + $collection, + ), + ) ->setInvoiceTypeCode( ($typeCode = ReaderHelper::getTagValue( Schema::CBC . "InvoiceTypeCode",