From a606b62ac87b05967144e60024456a0b9cc11cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20D=C3=A4hne?= Date: Wed, 15 Apr 2026 10:32:35 +0200 Subject: [PATCH] Add new fields to InvoiceEntity for references and notes It is no longer possible to generate invoices because an error message appears stating that some fields cannot be assigned. I have added these fields here. --- src/Invoice/InvoiceEntity.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/Invoice/InvoiceEntity.php b/src/Invoice/InvoiceEntity.php index 20a6fce..15e52f0 100644 --- a/src/Invoice/InvoiceEntity.php +++ b/src/Invoice/InvoiceEntity.php @@ -38,6 +38,14 @@ class InvoiceEntity public $comment; + public $customerAccountingNote; + + public $contractReference; + + public $customerOrderReference; + + public $orderReference; + /** * @var InvoiceCommentEntity[]|string */ @@ -198,6 +206,10 @@ class InvoiceEntity 'END_DATE' => 'endDate', 'DETAILS_URL' => 'detailsUrl', 'STATE' => 'state', + 'CUSTOMER_ACCOUNTING_NOTE' => 'customerAccountingNote', + 'CUSTOMER_ORDER_REFERENCE' => 'customerOrderReference', + 'CONTRACT_REFERENCE' => 'contractReference', + 'ORDER_REFERENCE' => 'orderReference', ]; public const XML_FIELD_MAPPING = [ @@ -260,6 +272,10 @@ class InvoiceEntity 'endDate' => 'END_DATE', 'detailsUrl' => 'DETAILS_URL', 'state' => 'STATE', + 'customerAccountingNote' => 'CUSTOMER_ACCOUNTING_NOTE', + 'customerOrderReference' => 'CUSTOMER_ORDER_REFERENCE', + 'contractReference' => 'CONTRACT_REFERENCE', + 'orderReference' => 'ORDER_REFERENCE', ]; public function __construct(?\SimpleXMLElement $data = null)