E-INVOICE : add note top level

This commit is contained in:
sparkyx 2025-12-17 17:53:15 +01:00
parent b3215890d0
commit 8462e4ffe3
3 changed files with 37 additions and 8 deletions

View file

@ -565,7 +565,10 @@ class InvoiceUBL21 extends XMLInvoice {
/**
* add note if any
*/
if ( $this->data['note'] != "")
{
$root->appendChild($this->createElement("cbc:Note",$this->data['note']));
}
$root->appendChild($this->createElement('cbc:DocumentCurrencyCode',$this->data['currency']));
$root->appendChild($this->createElement('cbc:BuyerReference',$this->data['info']['order']));
/**