Renamed table llx_c_commande_fournisseur_methode into an english and more generic name: llx_c_input_method
This commit is contained in:
parent
13b64e60b9
commit
becd77a04a
@ -74,9 +74,10 @@ $tabname[16]= MAIN_DB_PREFIX."c_prospectlevel";
|
||||
$tabname[17]= MAIN_DB_PREFIX."c_type_fees";
|
||||
$tabname[18]= MAIN_DB_PREFIX."c_shipment_mode";
|
||||
$tabname[19]= MAIN_DB_PREFIX."c_effectif";
|
||||
$tabname[20]= MAIN_DB_PREFIX."c_methode_commande_fournisseur";
|
||||
$tabname[20]= MAIN_DB_PREFIX."c_demand_method";
|
||||
$tabname[21]= MAIN_DB_PREFIX."c_availability";
|
||||
$tabname[22]= MAIN_DB_PREFIX."c_source";
|
||||
//$tabname[23]= MAIN_DB_PREFIX."c_demand_reason";
|
||||
|
||||
// Dictionary labels
|
||||
$tablib[1] = "DictionnaryCompanyJuridicalType";
|
||||
@ -122,7 +123,7 @@ $tabsql[16]= "SELECT code, label as libelle, active FROM ".MAIN_DB_PREFIX."c_pro
|
||||
$tabsql[17]= "SELECT id as rowid, code, libelle, active FROM ".MAIN_DB_PREFIX."c_type_fees";
|
||||
$tabsql[18]= "SELECT rowid as rowid, code, libelle, active FROM ".MAIN_DB_PREFIX."c_shipment_mode";
|
||||
$tabsql[19]= "SELECT id as rowid, code, libelle, active FROM ".MAIN_DB_PREFIX."c_effectif";
|
||||
$tabsql[20]= "SELECT rowid as rowid, code, libelle, active FROM ".MAIN_DB_PREFIX."c_methode_commande_fournisseur";
|
||||
$tabsql[20]= "SELECT rowid as rowid, code, libelle, active FROM ".MAIN_DB_PREFIX."c_demand_method";
|
||||
$tabsql[21]= "SELECT c.rowid as rowid, code, label, active FROM ".MAIN_DB_PREFIX."c_availability AS c";
|
||||
$tabsql[22]= "SELECT c.rowid as rowid, code, label, active FROM ".MAIN_DB_PREFIX."c_source AS c";
|
||||
|
||||
@ -874,7 +875,7 @@ function fieldList($fieldlist,$obj='')
|
||||
|
||||
foreach ($fieldlist as $field => $value)
|
||||
{
|
||||
|
||||
|
||||
if ($fieldlist[$field] == 'pays') {
|
||||
if (in_array('region_id',$fieldlist)) { print '<td> </td>'; continue; } // For region page, we do not show the country input
|
||||
print '<td>';
|
||||
|
||||
@ -87,7 +87,7 @@ class FormOrder
|
||||
$form=new Form($this->db);
|
||||
|
||||
$sql = "SELECT rowid, code, libelle as label";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."c_methode_commande_fournisseur";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."c_demand_method";
|
||||
$sql.= " WHERE active = 1";
|
||||
|
||||
dol_syslog("Form::select_methodes_commande sql=".$sql);
|
||||
|
||||
@ -107,7 +107,7 @@ class CommandeFournisseur extends Commande
|
||||
$sql.= " c.note, c.note_public, c.model_pdf,";
|
||||
$sql.= " cm.libelle as methode_commande";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."commande_fournisseur as c";
|
||||
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."c_methode_commande_fournisseur as cm ON cm.rowid = c.fk_methode_commande";
|
||||
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."c_demand_method as cm ON cm.rowid = c.fk_methode_commande";
|
||||
$sql.= " WHERE c.entity = ".$conf->entity;
|
||||
if ($ref) $sql.= " AND c.ref='".$ref."'";
|
||||
else $sql.= " AND c.rowid=".$id;
|
||||
@ -1123,7 +1123,7 @@ class CommandeFournisseur extends Commande
|
||||
function get_methodes_commande()
|
||||
{
|
||||
$sql = "SELECT rowid, libelle";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."c_methode_commande_fournisseur";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."c_demand_method";
|
||||
$sql.= " WHERE active = 1";
|
||||
|
||||
$resql=$this->db->query($sql);
|
||||
|
||||
10
htdocs/install/mysql/data/llx_c_methode_commande_fournisseur.sql → htdocs/install/mysql/data/llx_c_input_method.sql
Normal file → Executable file
10
htdocs/install/mysql/data/llx_c_methode_commande_fournisseur.sql → htdocs/install/mysql/data/llx_c_input_method.sql
Normal file → Executable file
@ -29,8 +29,8 @@
|
||||
--
|
||||
|
||||
|
||||
INSERT INTO llx_c_methode_commande_fournisseur (rowid, code, libelle, active) VALUES (1, 'OrderByMail', 'Courrier', 1);
|
||||
INSERT INTO llx_c_methode_commande_fournisseur (rowid, code, libelle, active) VALUES (2, 'OrderByFax', 'Fax', 1);
|
||||
INSERT INTO llx_c_methode_commande_fournisseur (rowid, code, libelle, active) VALUES (3, 'OrderByEMail', 'EMail', 1);
|
||||
INSERT INTO llx_c_methode_commande_fournisseur (rowid, code, libelle, active) VALUES (4, 'OrderByPhone', 'Téléphone', 1);
|
||||
INSERT INTO llx_c_methode_commande_fournisseur (rowid, code, libelle, active) VALUES (5, 'OrderByWWW', 'En ligne', 1);
|
||||
INSERT INTO llx_c_input_method (rowid, code, libelle, active) VALUES (1, 'OrderByMail', 'Courrier', 1);
|
||||
INSERT INTO llx_c_input_method (rowid, code, libelle, active) VALUES (2, 'OrderByFax', 'Fax', 1);
|
||||
INSERT INTO llx_c_input_method (rowid, code, libelle, active) VALUES (3, 'OrderByEMail', 'EMail', 1);
|
||||
INSERT INTO llx_c_input_method (rowid, code, libelle, active) VALUES (4, 'OrderByPhone', 'Téléphone', 1);
|
||||
INSERT INTO llx_c_input_method (rowid, code, libelle, active) VALUES (5, 'OrderByWWW', 'En ligne', 1);
|
||||
@ -10,6 +10,8 @@
|
||||
-- To change type of field: ALTER TABLE llx_table MODIFY name varchar(60);
|
||||
--
|
||||
|
||||
RENAME TABLE llx_c_methode_commande_fournisseur TO llx_c_input_method;
|
||||
|
||||
ALTER TABLE llx_adherent MODIFY login varchar(50);
|
||||
|
||||
ALTER TABLE llx_c_actioncomm ADD COLUMN position integer NOT NULL DEFAULT 0;
|
||||
|
||||
2
htdocs/install/mysql/tables/llx_c_methode_commande_fournisseur.key.sql → htdocs/install/mysql/tables/llx_c_input_method.key.sql
Normal file → Executable file
2
htdocs/install/mysql/tables/llx_c_methode_commande_fournisseur.key.sql → htdocs/install/mysql/tables/llx_c_input_method.key.sql
Normal file → Executable file
@ -19,4 +19,4 @@
|
||||
-- $Id$
|
||||
-- ========================================================================
|
||||
|
||||
ALTER TABLE llx_c_methode_commande_fournisseur ADD UNIQUE INDEX uk_c_methode_commande_fournisseur (code);
|
||||
ALTER TABLE llx_c_input_method ADD UNIQUE INDEX uk_c_input_method(code);
|
||||
2
htdocs/install/mysql/tables/llx_c_methode_commande_fournisseur.sql → htdocs/install/mysql/tables/llx_c_input_method.sql
Normal file → Executable file
2
htdocs/install/mysql/tables/llx_c_methode_commande_fournisseur.sql → htdocs/install/mysql/tables/llx_c_input_method.sql
Normal file → Executable file
@ -19,7 +19,7 @@
|
||||
-- $Id$
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_methode_commande_fournisseur
|
||||
create table llx_c_input_method
|
||||
(
|
||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||
code varchar(30),
|
||||
@ -107,7 +107,7 @@ if (! GETPOST("action") || preg_match('/upgrade/i',GETPOST('action')))
|
||||
$conf->db->name = $dolibarr_main_db_name;
|
||||
$conf->db->user = $dolibarr_main_db_user;
|
||||
$conf->db->pass = $dolibarr_main_db_pass;
|
||||
|
||||
|
||||
// Load type and crypt key
|
||||
if (empty($dolibarr_main_db_encryption)) $dolibarr_main_db_encryption=0;
|
||||
$conf->db->dolibarr_main_db_encryption = $dolibarr_main_db_encryption;
|
||||
@ -243,7 +243,8 @@ if (! GETPOST("action") || preg_match('/upgrade/i',GETPOST('action')))
|
||||
$listtables=array( 'llx_adherent_options',
|
||||
'llx_bank_class',
|
||||
'llx_c_ecotaxe',
|
||||
'llx_c_methode_commande_fournisseur');
|
||||
'llx_c_methode_commande_fournisseur', // table renamed
|
||||
'llx_c_input_method');
|
||||
|
||||
$listtables = $db->DDLListTables($conf->db->name,'');
|
||||
foreach ($listtables as $val)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user