Fix Bug : XML UBL21 fails if customer name contains an ampersand
This commit is contained in:
parent
4b2adca0cd
commit
5bc593b4b0
1 changed files with 1 additions and 1 deletions
|
|
@ -235,7 +235,7 @@ class InvoiceUBL21 extends XMLInvoice {
|
|||
// LegalEntity
|
||||
$ple=$this->createElement('cac:PartyLegalEntity');
|
||||
///@todo customer = name doit être fiche
|
||||
$ple->appendChild($this->createElement("cbc:RegistrationName", $this->data['customer']['name']??"ERROR"));
|
||||
$ple->appendChild($this->createElement("cbc:RegistrationName", htmlspecialchars($this->data['customer']['name'],ENT_XML1,'UTF-8')));
|
||||
///@todo customer_vat_id = numéro de TVA doit être dans fiche
|
||||
$ple->appendChild($this->createElement("cbc:CompanyID", $this->data['customer']['customer_vat_id']??"ERROR"));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue