2namespace Noalyss\XMLDocument;
76 $this->a_message_company = array(
77 "INVOICE_EMAIL_COMPANY" =>
_(
"L'email de la société ")
78 ,
'INVOICE_CONTACT_NAME' =>
_(
"Nom du contact")
79 ,
'COMPANY_LEGAL_ENTITY' =>
_(
"Type de société (SRL,ASBL,...)")
80 ,
'COMPANY_LEGAL_REGISTRATION' =>
_(
"Nom complet de la société")
81 ,
'COMPANY_BANK_IBAN' =>
_(
"Compte en banque (IBAN) de la société")
82 ,
'COMPANY_BANK_BIC' =>
_(
"Code BIC de compte en banque")
83 ,
'COMPANY_PEPPOL_ID' =>
_(
"Identifiant PEPPOL")
84 ,
'MY_COUNTRY_CODE' =>
_(
'Code Pays')
85 ,
'MY_NAME' =>
_(
"Nom de la société")
86 ,
'MY_STREET' =>
_(
"Adresse de la société")
87 ,
'MY_CITY' =>
_(
"Ville")
88 ,
'MY_TVA' =>
_(
"Numéro de TVA, vide ou invalide, il doit commencer par les 2 lettres du code pays")
92 $this->a_message_customer = array(
94 ,
'street' =>
_(
"Adresse")
95 ,
'postalzone' =>
_(
"Code postal")
96 ,
'city' =>
_(
"Ville")
97 ,
'country'=>
_(
"Code pays")
98 ,
'customer_vat_id' =>
_(
"Numéro de TVA, vide ou invalide, il doit commencer par les 2 lettres du code pays")
99 ,
'endpoint_id' =>
_(
'Identifiant PEPPOL')
123 if (
$type ==
"customer")
125 $a_error = $this->a_error[
'customer'];
127 }
else if (
$type ==
"company")
129 $a_error = $this->a_error[
'company'];
133 throw new \Exception(
"EM116: unknow type");
136 return $a_message[
$code];
_("actif, passif,charge,...")
Give the error message thanks the code for FacturX and UBL21.
get_message_error($code, $type)
returns the text of an error
__construct($a_error)
constructo