E-INVOICE : use VAT to identify company, since it

between belgian company for the moment, VAT_CODE Mandatory
This commit is contained in:
sparkyx 2025-10-13 18:29:52 +02:00
parent fe7c3bc259
commit 3755a56588
5 changed files with 47 additions and 32 deletions

View file

@ -82,10 +82,8 @@ class FacturX extends XMLInvoice
}
/**
* @brief check that mandatory info are saved in the DB for customer
* @param $customer_id (int) card of the customer FICHE.F_ID
* @param $a_error (array) array of errors, empty if nothing found
*/
function check_customer_data($customer_id){
function check_customer_data(){
$a_error=array();
$a_needed=[ATTR_DEF_NAME=>'name'
,ATTR_DEF_ADRESS=>'street'