mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
english language standardization
This commit is contained in:
parent
d27568d3d0
commit
6decab1847
|
|
@ -63,7 +63,6 @@ class Adherent extends CommonObject
|
|||
var $country_id;
|
||||
var $country_code;
|
||||
var $country;
|
||||
var $pays_id; // deprecated
|
||||
var $pays_code; // deprecated
|
||||
var $pays; // deprecated
|
||||
|
||||
|
|
@ -563,7 +562,7 @@ class Adherent extends CommonObject
|
|||
$lthirdparty->tel=$this->phone;
|
||||
$lthirdparty->state_id=$this->state_id;
|
||||
$lthirdparty->country_id=$this->country_id;
|
||||
$lthirdparty->pays_id=$this->country_id;
|
||||
$lthirdparty->country_id=$this->country_id;
|
||||
//$lthirdparty->phone_mobile=$this->phone_mobile;
|
||||
|
||||
$result=$lthirdparty->update($this->fk_soc,$user,0,1,1,'update'); // Use sync to 0 to avoid cyclic updates
|
||||
|
|
@ -1069,7 +1068,6 @@ class Adherent extends CommonObject
|
|||
$this->country = $langs->transnoentitiesnoconv("Country".$obj->country_code);
|
||||
else
|
||||
$this->country=$obj->country;
|
||||
$this->pays_id = $obj->country_id; // deprecated
|
||||
$this->pays_code = $obj->country_code; // deprecated
|
||||
$this->pays = $this->country; // deprecated
|
||||
|
||||
|
|
|
|||
|
|
@ -263,7 +263,6 @@ if ($action == 'update' && ! $_POST["cancel"] && $user->rights->adherent->creer)
|
|||
$object->state_id = $_POST["departement_id"];
|
||||
$object->country_id = $_POST["country_id"];
|
||||
$object->fk_departement = $_POST["departement_id"]; // deprecated
|
||||
$object->pays_id = $_POST["country_id"]; // deprecated
|
||||
|
||||
$object->phone = trim($_POST["phone"]);
|
||||
$object->phone_perso = trim($_POST["phone_perso"]);
|
||||
|
|
@ -438,7 +437,6 @@ if ($action == 'add' && $user->rights->adherent->creer)
|
|||
$object->town = $town;
|
||||
$object->fk_departement = $state_id;
|
||||
$object->state_id = $state_id;
|
||||
$object->pays_id = $country_id;
|
||||
$object->country_id = $country_id;
|
||||
$object->phone = $phone;
|
||||
$object->phone_perso = $phone_perso;
|
||||
|
|
@ -959,7 +957,6 @@ else
|
|||
{
|
||||
dol_print_error($db);
|
||||
}
|
||||
$object->pays_id=$obj->rowid;
|
||||
$object->pays_code=$obj->code;
|
||||
$object->pays=$langs->trans("Country".$obj->code)?$langs->trans("Country".$obj->code):$obj->label;
|
||||
$object->country_id=$obj->rowid;
|
||||
|
|
|
|||
|
|
@ -130,18 +130,18 @@ $tablib[24]= "DictionnaryAccountancysystem";
|
|||
$tabsql=array();
|
||||
$tabsql[1] = "SELECT f.rowid as rowid, f.code, f.libelle, p.code as pays_code, p.libelle as pays, f.active FROM ".MAIN_DB_PREFIX."c_forme_juridique as f, ".MAIN_DB_PREFIX."c_pays as p WHERE f.fk_pays=p.rowid";
|
||||
$tabsql[2] = "SELECT d.rowid as rowid, d.code_departement as code, d.nom as libelle, d.fk_region as region_id, r.nom as region, p.code as pays_code, p.libelle as pays, d.active FROM ".MAIN_DB_PREFIX."c_departements as d, ".MAIN_DB_PREFIX."c_regions as r, ".MAIN_DB_PREFIX."c_pays as p WHERE d.fk_region=r.code_region and r.fk_pays=p.rowid and r.active=1 and p.active=1";
|
||||
$tabsql[3] = "SELECT r.rowid as rowid, code_region as code, nom as libelle, r.fk_pays as pays_id, p.code as pays_code, p.libelle as pays, r.active FROM ".MAIN_DB_PREFIX."c_regions as r, ".MAIN_DB_PREFIX."c_pays as p WHERE r.fk_pays=p.rowid and p.active=1";
|
||||
$tabsql[3] = "SELECT r.rowid as rowid, code_region as code, nom as libelle, r.fk_pays as country_id, p.code as pays_code, p.libelle as pays, r.active FROM ".MAIN_DB_PREFIX."c_regions as r, ".MAIN_DB_PREFIX."c_pays as p WHERE r.fk_pays=p.rowid and p.active=1";
|
||||
$tabsql[4] = "SELECT rowid as rowid, code, libelle, active FROM ".MAIN_DB_PREFIX."c_pays";
|
||||
$tabsql[5] = "SELECT c.rowid as rowid, c.code as code, c.civilite AS libelle, c.active FROM ".MAIN_DB_PREFIX."c_civilite AS c";
|
||||
$tabsql[6] = "SELECT a.id as rowid, a.code as code, a.libelle AS libelle, a.type, a.active, a.module, a.position FROM ".MAIN_DB_PREFIX."c_actioncomm AS a";
|
||||
$tabsql[7] = "SELECT a.id as rowid, a.code as code, a.libelle AS libelle, a.accountancy_code as accountancy_code, a.deductible, p.code as pays_code, p.libelle as pays, a.fk_pays as pays_id, a.active FROM ".MAIN_DB_PREFIX."c_chargesociales AS a, ".MAIN_DB_PREFIX."c_pays as p WHERE a.fk_pays=p.rowid and p.active=1";
|
||||
$tabsql[7] = "SELECT a.id as rowid, a.code as code, a.libelle AS libelle, a.accountancy_code as accountancy_code, a.deductible, p.code as pays_code, p.libelle as pays, a.fk_pays as country_id, a.active FROM ".MAIN_DB_PREFIX."c_chargesociales AS a, ".MAIN_DB_PREFIX."c_pays as p WHERE a.fk_pays=p.rowid and p.active=1";
|
||||
$tabsql[8] = "SELECT id as rowid, code, libelle, active FROM ".MAIN_DB_PREFIX."c_typent";
|
||||
$tabsql[9] = "SELECT code_iso as code, label, unicode, active FROM ".MAIN_DB_PREFIX."c_currencies";
|
||||
$tabsql[10]= "SELECT t.rowid, t.taux, t.localtax1_type, t.localtax1, t.localtax2_type, t.localtax2, p.libelle as pays, p.code as pays_code, t.fk_pays as pays_id, t.recuperableonly, t.note, t.active, t.accountancy_code_sell, t.accountancy_code_buy FROM ".MAIN_DB_PREFIX."c_tva as t, llx_c_pays as p WHERE t.fk_pays=p.rowid";
|
||||
$tabsql[10]= "SELECT t.rowid, t.taux, t.localtax1_type, t.localtax1, t.localtax2_type, t.localtax2, p.libelle as pays, p.code as pays_code, t.fk_pays as country_id, t.recuperableonly, t.note, t.active, t.accountancy_code_sell, t.accountancy_code_buy FROM ".MAIN_DB_PREFIX."c_tva as t, llx_c_pays as p WHERE t.fk_pays=p.rowid";
|
||||
$tabsql[11]= "SELECT t.rowid as rowid, element, source, code, libelle, active FROM ".MAIN_DB_PREFIX."c_type_contact AS t";
|
||||
$tabsql[12]= "SELECT c.rowid as rowid, code, sortorder, c.libelle, c.libelle_facture, nbjour, fdm, decalage, active FROM ".MAIN_DB_PREFIX.'c_payment_term AS c';
|
||||
$tabsql[13]= "SELECT id as rowid, code, c.libelle, type, active FROM ".MAIN_DB_PREFIX."c_paiement AS c";
|
||||
$tabsql[14]= "SELECT e.rowid as rowid, e.code as code, e.libelle, e.price, e.organization, e.fk_pays as pays_id, p.code as pays_code, p.libelle as pays, e.active FROM ".MAIN_DB_PREFIX."c_ecotaxe AS e, ".MAIN_DB_PREFIX."c_pays as p WHERE e.fk_pays=p.rowid and p.active=1";
|
||||
$tabsql[14]= "SELECT e.rowid as rowid, e.code as code, e.libelle, e.price, e.organization, e.fk_pays as country_id, p.code as pays_code, p.libelle as pays, e.active FROM ".MAIN_DB_PREFIX."c_ecotaxe AS e, ".MAIN_DB_PREFIX."c_pays as p WHERE e.fk_pays=p.rowid and p.active=1";
|
||||
$tabsql[15]= "SELECT rowid as rowid, code, label as libelle, width, height, unit, active FROM ".MAIN_DB_PREFIX."c_paper_format";
|
||||
$tabsql[16]= "SELECT code, label as libelle, active FROM ".MAIN_DB_PREFIX."c_prospectlevel";
|
||||
$tabsql[17]= "SELECT id as rowid, code, libelle, active FROM ".MAIN_DB_PREFIX."c_type_fees";
|
||||
|
|
@ -151,7 +151,7 @@ $tabsql[20]= "SELECT rowid as rowid, code, libelle, active FROM ".MAIN_DB_PREF
|
|||
$tabsql[21]= "SELECT c.rowid as rowid, code, label, active FROM ".MAIN_DB_PREFIX."c_availability AS c";
|
||||
$tabsql[22]= "SELECT rowid as rowid, code, label, active FROM ".MAIN_DB_PREFIX."c_input_reason";
|
||||
$tabsql[23]= "SELECT rowid as rowid, fk_pcg_version, pcg_type, pcg_subtype, account_number as accountancy_code, account_parent, label, active FROM ".MAIN_DB_PREFIX."accountingaccount";
|
||||
$tabsql[24]= "SELECT s.rowid as rowid, pcg_version, s.fk_pays as pays_id, p.code as pays_code, p.libelle as pays, s.label, s.active FROM ".MAIN_DB_PREFIX."accounting_system as s, ".MAIN_DB_PREFIX."c_pays as p WHERE s.fk_pays=p.rowid and p.active=1";
|
||||
$tabsql[24]= "SELECT s.rowid as rowid, pcg_version, s.fk_pays as country_id, p.code as pays_code, p.libelle as pays, s.label, s.active FROM ".MAIN_DB_PREFIX."accounting_system as s, ".MAIN_DB_PREFIX."c_pays as p WHERE s.fk_pays=p.rowid and p.active=1";
|
||||
|
||||
// Critere de tri du dictionnaire
|
||||
$tabsqlsort=array();
|
||||
|
|
@ -184,18 +184,18 @@ $tabsqlsort[24]="pcg_version ASC";
|
|||
$tabfield=array();
|
||||
$tabfield[1] = "code,libelle,pays";
|
||||
$tabfield[2] = "code,libelle,region_id,region,pays"; // "code,libelle,region,pays_code-pays"
|
||||
$tabfield[3] = "code,libelle,pays_id,pays";
|
||||
$tabfield[3] = "code,libelle,country_id,pays";
|
||||
$tabfield[4] = "code,libelle";
|
||||
$tabfield[5] = "code,libelle";
|
||||
$tabfield[6] = "code,libelle,type,position";
|
||||
$tabfield[7] = "code,libelle,pays_id,pays,accountancy_code,deductible";
|
||||
$tabfield[7] = "code,libelle,country_id,pays,accountancy_code,deductible";
|
||||
$tabfield[8] = "code,libelle";
|
||||
$tabfield[9] = "code,label,unicode";
|
||||
$tabfield[10]= "pays_id,pays,taux,recuperableonly,localtax1_type,localtax1,localtax2_type,localtax2,accountancy_code_sell,accountancy_code_buy,note";
|
||||
$tabfield[11]= "element,source,code,libelle";
|
||||
$tabfield[12]= "code,libelle,libelle_facture,nbjour,fdm,decalage";
|
||||
$tabfield[13]= "code,libelle,type";
|
||||
$tabfield[14]= "code,libelle,price,organization,pays_id,pays";
|
||||
$tabfield[14]= "code,libelle,price,organization,country_id,pays";
|
||||
$tabfield[15]= "code,libelle,width,height,unit";
|
||||
$tabfield[16]= "code,libelle";
|
||||
$tabfield[17]= "code,libelle";
|
||||
|
|
@ -205,7 +205,7 @@ $tabfield[20]= "code,libelle";
|
|||
$tabfield[21]= "code,label";
|
||||
$tabfield[22]= "code,label";
|
||||
$tabfield[23]= "fk_pcg_version,accountancy_code,account_parent,pcg_type,pcg_subtype,label";
|
||||
$tabfield[24]= "pcg_version,pays_id,pays,label";
|
||||
$tabfield[24]= "pcg_version,country_id,pays,label";
|
||||
|
||||
// Nom des champs d'edition pour modification d'un enregistrement
|
||||
$tabfieldvalue=array();
|
||||
|
|
@ -739,7 +739,7 @@ if ($id)
|
|||
if ($fieldlist[$field]=='width') { $valuetoshow=$langs->trans("Width"); }
|
||||
if ($fieldlist[$field]=='height') { $valuetoshow=$langs->trans("Height"); }
|
||||
if ($fieldlist[$field]=='unit') { $valuetoshow=$langs->trans("MeasuringUnit"); }
|
||||
if ($fieldlist[$field]=='region_id' || $fieldlist[$field]=='pays_id') { $valuetoshow=''; }
|
||||
if ($fieldlist[$field]=='region_id' || $fieldlist[$field]=='country_id') { $valuetoshow=''; }
|
||||
if ($fieldlist[$field]=='accountancy_code'){ $valuetoshow=$langs->trans("AccountancyCode"); }
|
||||
if ($fieldlist[$field]=='accountancy_code_sell'){ $valuetoshow=$langs->trans("AccountancyCodeSell"); }
|
||||
if ($fieldlist[$field]=='accountancy_code_buy'){ $valuetoshow=$langs->trans("AccountancyCodeBuy"); }
|
||||
|
|
@ -853,7 +853,7 @@ if ($id)
|
|||
if ($fieldlist[$field]=='width') { $valuetoshow=$langs->trans("Width"); }
|
||||
if ($fieldlist[$field]=='height') { $valuetoshow=$langs->trans("Height"); }
|
||||
if ($fieldlist[$field]=='unit') { $valuetoshow=$langs->trans("MeasuringUnit"); }
|
||||
if ($fieldlist[$field]=='region_id' || $fieldlist[$field]=='pays_id') { $showfield=0; }
|
||||
if ($fieldlist[$field]=='region_id' || $fieldlist[$field]=='country_id') { $showfield=0; }
|
||||
if ($fieldlist[$field]=='accountancy_code'){ $valuetoshow=$langs->trans("AccountancyCode"); }
|
||||
if ($fieldlist[$field]=='accountancy_code_sell'){ $valuetoshow=$langs->trans("AccountancyCodeSell"); $sortable=0; }
|
||||
if ($fieldlist[$field]=='accountancy_code_buy'){ $valuetoshow=$langs->trans("AccountancyCodeBuy"); $sortable=0; }
|
||||
|
|
@ -1014,7 +1014,7 @@ if ($id)
|
|||
$key = $langs->trans(strtoupper($obj->code));
|
||||
$valuetoshow = ($obj->code && $key != strtoupper($obj->code) ? $key : $obj->$fieldlist[$field]);
|
||||
}
|
||||
else if ($fieldlist[$field]=='region_id' || $fieldlist[$field]=='pays_id') {
|
||||
else if ($fieldlist[$field]=='region_id' || $fieldlist[$field]=='country_id') {
|
||||
$showfield=0;
|
||||
}
|
||||
else if ($fieldlist[$field]=='unicode') {
|
||||
|
|
@ -1199,9 +1199,9 @@ function fieldList($fieldlist,$obj='',$tabname='')
|
|||
print $form->select_country((! empty($obj->pays_code)?$obj->pays_code:(! empty($obj->pays)?$obj->pays:'')), 'pays', '', 28);
|
||||
print '</td>';
|
||||
}
|
||||
elseif ($fieldlist[$field] == 'pays_id') {
|
||||
$pays_id = (! empty($obj->$fieldlist[$field]) ? $obj->$fieldlist[$field] : 0);
|
||||
print '<input type="hidden" name="'.$fieldlist[$field].'" value="'.$pays_id.'">';
|
||||
elseif ($fieldlist[$field] == 'country_id') {
|
||||
$country_id = (! empty($obj->$fieldlist[$field]) ? $obj->$fieldlist[$field] : 0);
|
||||
print '<input type="hidden" name="'.$fieldlist[$field].'" value="'.$country_id.'">';
|
||||
}
|
||||
elseif ($fieldlist[$field] == 'region') {
|
||||
print '<td>';
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ if ($action == 'create')
|
|||
$object->note = $_POST["note"];
|
||||
}
|
||||
|
||||
// On positionne pays_id, pays_code et libelle du pays choisi
|
||||
// On positionne country_id, pays_code et libelle du pays choisi
|
||||
$object->country_id = (GETPOST('country_id','int') ? GETPOST('country_id','int') : $mysoc->country_id);
|
||||
if ($object->country_id)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -444,7 +444,7 @@ class Form
|
|||
* @param string $htmloption Options html on select object
|
||||
* @return void
|
||||
*/
|
||||
function select_pays($selected='',$htmlname='pays_id',$htmloption='')
|
||||
function select_pays($selected='',$htmlname='country_id',$htmloption='')
|
||||
{
|
||||
print $this->select_country($selected,$htmlname,$htmloption);
|
||||
}
|
||||
|
|
@ -458,7 +458,7 @@ class Form
|
|||
* @param string $maxlength Max length for labels (0=no limit)
|
||||
* @return string HTML string with select
|
||||
*/
|
||||
function select_country($selected='',$htmlname='pays_id',$htmloption='',$maxlength=0)
|
||||
function select_country($selected='',$htmlname='country_id',$htmloption='',$maxlength=0)
|
||||
{
|
||||
global $conf,$langs;
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@ class Entrepot extends CommonObject
|
|||
var $country;
|
||||
var $country_id;
|
||||
var $country_code;
|
||||
var $pays_id; // deprecated
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -144,7 +143,7 @@ class Entrepot extends CommonObject
|
|||
$this->address=$this->db->escape(trim($this->address));
|
||||
$this->zip=$this->zip?trim($this->zip):trim($this->zip);
|
||||
$this->town=$this->town?trim($this->town):trim($this->town);
|
||||
$this->country_id=($this->country_id > 0 ? $this->country_id : $this->pays_id);
|
||||
$this->country_id=($this->country_id > 0 ? $this->country_id : $this->country_id);
|
||||
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."entrepot ";
|
||||
$sql .= " SET label = '" . $this->db->escape($this->libelle) ."'";
|
||||
|
|
@ -274,7 +273,6 @@ class Entrepot extends CommonObject
|
|||
$this->statut = $obj->statut;
|
||||
$this->lieu = $obj->lieu;
|
||||
$this->address = $obj->address;
|
||||
$this->pays_id = $obj->country_id; // deprecated
|
||||
$this->zip = $obj->zip;
|
||||
$this->town = $obj->town;
|
||||
$this->country_id = $obj->country_id;
|
||||
|
|
|
|||
|
|
@ -64,7 +64,6 @@ if ($action == 'add' && $user->rights->stock->creer)
|
|||
$object->statut = $_POST["statut"];
|
||||
$object->lieu = $_POST["lieu"];
|
||||
$object->address = $_POST["address"];
|
||||
$object->pays_id = $_POST["country_id"];
|
||||
$object->zip = $_POST["zipcode"];
|
||||
$object->town = $_POST["town"];
|
||||
$object->country_id = $_POST["country_id"];
|
||||
|
|
@ -115,7 +114,6 @@ if ($action == 'update' && $_POST["cancel"] <> $langs->trans("Cancel"))
|
|||
$object->statut = $_POST["statut"];
|
||||
$object->lieu = $_POST["lieu"];
|
||||
$object->address = $_POST["address"];
|
||||
$object->pays_id = $_POST["country_id"];
|
||||
$object->zip = $_POST["zipcode"];
|
||||
$object->town = $_POST["town"];
|
||||
$object->country_id = $_POST["country_id"];
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ abstract class ActionsCardCommon
|
|||
$this->object->address = $_POST["adresse"];
|
||||
$this->object->zip = $_POST["zipcode"];
|
||||
$this->object->town = $_POST["town"];
|
||||
$this->object->country_id = $_POST["pays_id"];
|
||||
$this->object->country_id = $_POST["country_id"];
|
||||
$this->object->state_id = $_POST["departement_id"];
|
||||
$this->object->tel = $_POST["tel"];
|
||||
$this->object->fax = $_POST["fax"];
|
||||
|
|
@ -701,7 +701,7 @@ abstract class ActionsCardCommon
|
|||
$this->object->localtax1_assuj = $_POST["localtax1assuj_value"];
|
||||
$this->object->localtax2_assuj = $_POST["localtax2assuj_value"];
|
||||
|
||||
// We set pays_id, and pays_code label of the chosen country
|
||||
// We set country_id, and pays_code label of the chosen country
|
||||
if ($this->object->country_id)
|
||||
{
|
||||
$tmparray=getCountry($this->object->country_id,'all',$this->db,$langs,0);
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ class Address
|
|||
var $address;
|
||||
var $zip;
|
||||
var $town;
|
||||
var $pays_id; // deprecated
|
||||
var $country_id;
|
||||
var $pays_code; // deprecated
|
||||
var $country_code;
|
||||
|
|
@ -302,7 +301,6 @@ class Address
|
|||
$line->note = $objp->note;
|
||||
|
||||
// deprecated
|
||||
$line->pays_id = $line->country_id;
|
||||
$line->pays_code = $line->country_code;
|
||||
$line->pays = $line->country;
|
||||
$line->tel = $line->phone;
|
||||
|
|
@ -379,7 +377,6 @@ class Address
|
|||
$this->note = $obj->note;
|
||||
|
||||
// deprecated
|
||||
$this->pays_id = $this->country_id;
|
||||
$this->pays_code = $this->country_code;
|
||||
$this->pays = $this->country;
|
||||
$this->tel = $this->phone;
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@ class Societe extends CommonObject
|
|||
var $departement_code; // deprecated
|
||||
var $departement; // deprecated
|
||||
|
||||
var $pays_id; // deprecated
|
||||
var $pays_code; // deprecated
|
||||
var $pays; // deprecated
|
||||
var $country_id;
|
||||
|
|
@ -396,8 +395,7 @@ class Societe extends CommonObject
|
|||
$this->zip = $this->zip?trim($this->zip):trim($this->zip);
|
||||
$this->town = $this->town?trim($this->town):trim($this->town);
|
||||
$this->state_id = trim($this->state_id);
|
||||
$this->country_id = ($this->country_id > 0)?$this->country_id:$this->pays_id;
|
||||
$this->pays_id = $this->country_id; // TODO obsolete
|
||||
$this->country_id = ($this->country_id > 0)?$this->country_id:$this->country_id;
|
||||
$this->phone = trim($this->phone?$this->phone:$this->tel);
|
||||
$this->phone = preg_replace("/\s/","",$this->phone);
|
||||
$this->phone = preg_replace("/\./","",$this->phone);
|
||||
|
|
@ -758,7 +756,6 @@ class Societe extends CommonObject
|
|||
$this->zip = $obj->zip;
|
||||
$this->town = $obj->town;
|
||||
|
||||
$this->pays_id = $obj->country_id; // TODO obsolete
|
||||
$this->country_id = $obj->country_id;
|
||||
$this->pays_code = $obj->country_id?$obj->country_code:''; // TODO obsolete
|
||||
$this->country_code = $obj->country_id?$obj->country_code:'';
|
||||
|
|
@ -2439,7 +2436,6 @@ class Societe extends CommonObject
|
|||
$this->town=$member->town;
|
||||
$this->pays_code=$member->country_code; // TODO obsolete
|
||||
$this->country_code=$member->country_code;
|
||||
$this->pays_id=$member->country_id; // TODO obsolete
|
||||
$this->country_id=$member->country_id;
|
||||
$this->tel=$member->phone; // deprecated
|
||||
$this->phone=$member->phone; // Prof phone
|
||||
|
|
@ -2524,7 +2520,6 @@ class Societe extends CommonObject
|
|||
$country_label=getCountry($country_id,0,$db); // This need a SQL request, but it's the old feature
|
||||
}
|
||||
}
|
||||
$this->pays_id=$country_id; // TODO deprecated
|
||||
$this->country_id=$country_id;
|
||||
$this->pays_code=$country_code; // TODO deprecated
|
||||
$this->country_code=$country_code;
|
||||
|
|
|
|||
|
|
@ -194,12 +194,10 @@ if ($result >= 0)
|
|||
|
||||
//$member->societe;
|
||||
$member->address=$ldapuser[$conf->global->LDAP_FIELD_ADDRESS];
|
||||
$member->cp=$ldapuser[$conf->global->LDAP_FIELD_ZIP]; // deprecated
|
||||
$member->zip=$ldapuser[$conf->global->LDAP_FIELD_ZIP];
|
||||
$member->town=$ldapuser[$conf->global->LDAP_FIELD_TOWN];
|
||||
$member->pays=$ldapuser[$conf->global->LDAP_FIELD_COUNTRY]; // deprecated
|
||||
$member->country=$ldapuser[$conf->global->LDAP_FIELD_COUNTRY];
|
||||
$member->pays_id=$countries[$hashlib2rowid[strtolower($member->country)]]['rowid']; // deprecated
|
||||
$member->country_id=$countries[$hashlib2rowid[strtolower($member->country)]]['rowid'];
|
||||
$member->pays_code=$countries[$hashlib2rowid[strtolower($member->country)]]['code']; // deprecated
|
||||
$member->country_code=$countries[$hashlib2rowid[strtolower($member->country)]]['code'];
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td>selectAndWait</td>
|
||||
<td>pays_id</td>
|
||||
<td>country_id</td>
|
||||
<td>label=FR - France</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user