From 9b460fc36bcaaa2fb0e46cdad07fc3da40943648 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 4 Oct 2005 00:04:02 +0000 Subject: [PATCH] =?UTF-8?q?Renomme=20champ=20actif=20de=20llx=5Fcond=5Freg?= =?UTF-8?q?lement=20en=20"active"=20pour=20homog=E9n=E9it=E9=20avec=20autr?= =?UTF-8?q?es=20tables=20des=20dictionnaires=20et=20permettre=20son=20=E9d?= =?UTF-8?q?ition=20dans=20la=20page=20"configuration=20dictionnaires".?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/data/data.sql | 10 +++++----- mysql/migration/1.1.0-2.0.0.sql | 6 ++++++ mysql/tables/llx_cond_reglement.sql | 2 +- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/mysql/data/data.sql b/mysql/data/data.sql index f7c693a3a62..b2e246808ed 100644 --- a/mysql/data/data.sql +++ b/mysql/data/data.sql @@ -28,11 +28,11 @@ -- de l'install et tous les sigles '--' sont supprimés. -- -insert into llx_cond_reglement(rowid, code, sortorder, actif, libelle, libelle_facture, fdm, nbjour) values (1,'RECEP', 1,1, 'A réception','Réception de facture',0,0); -insert into llx_cond_reglement(rowid, code, sortorder, actif, libelle, libelle_facture, fdm, nbjour) values (2,'30D', 2,1, '30 jours','Réglement à 30 jours',0,30); -insert into llx_cond_reglement(rowid, code, sortorder, actif, libelle, libelle_facture, fdm, nbjour) values (3,'30DENDMONTH', 3,1, '30 jours fin de mois','Réglement à 30 jours fin de mois',1,30); -insert into llx_cond_reglement(rowid, code, sortorder, actif, libelle, libelle_facture, fdm, nbjour) values (4,'60D', 4,1, '60 jours','Réglement à 60 jours',0,60); -insert into llx_cond_reglement(rowid, code, sortorder, actif, libelle, libelle_facture, fdm, nbjour) values (5,'60DENDMONTH', 5,1, '60 jours fin de mois','Réglement à 60 jours fin de mois',1,60); +insert into llx_cond_reglement(rowid, code, sortorder, active, libelle, libelle_facture, fdm, nbjour) values (1,'RECEP', 1,1, 'A réception','Réception de facture',0,0); +insert into llx_cond_reglement(rowid, code, sortorder, active, libelle, libelle_facture, fdm, nbjour) values (2,'30D', 2,1, '30 jours','Réglement à 30 jours',0,30); +insert into llx_cond_reglement(rowid, code, sortorder, active, libelle, libelle_facture, fdm, nbjour) values (3,'30DENDMONTH', 3,1, '30 jours fin de mois','Réglement à 30 jours fin de mois',1,30); +insert into llx_cond_reglement(rowid, code, sortorder, active, libelle, libelle_facture, fdm, nbjour) values (4,'60D', 4,1, '60 jours','Réglement à 60 jours',0,60); +insert into llx_cond_reglement(rowid, code, sortorder, active, libelle, libelle_facture, fdm, nbjour) values (5,'60DENDMONTH', 5,1, '60 jours fin de mois','Réglement à 60 jours fin de mois',1,60); insert into llx_sqltables (name, loaded) values ('llx_album',0); diff --git a/mysql/migration/1.1.0-2.0.0.sql b/mysql/migration/1.1.0-2.0.0.sql index 7d8297c829b..04c859d1010 100644 --- a/mysql/migration/1.1.0-2.0.0.sql +++ b/mysql/migration/1.1.0-2.0.0.sql @@ -260,7 +260,13 @@ alter table llx_user_rights add rowid integer AUTO_INCREMENT PRIMARY KEY; alter table llx_facture add fk_mode_reglement integer after fk_cond_reglement ; +alter table llx_cond_reglement change column actif active tinyint(4); alter table llx_cond_reglement add code varchar(16) after rowid; +update llx_cond_reglement set code='RECEP' where libelle='A réception' and code IS NULL; +update llx_cond_reglement set code='30D' where libelle='30 jours' and code IS NULL; +update llx_cond_reglement set code='30DENDMONTH' where libelle='30 jours fin de mois' and code IS NULL; +update llx_cond_reglement set code='60D' where libelle='60 jours' and code IS NULL; +update llx_cond_reglement set code='60DENDMONTH' where libelle='60 jours fin de mois' and code IS NULL; alter table llx_socpeople add cp varchar(25) after address; alter table llx_socpeople add ville varchar(255) after cp; diff --git a/mysql/tables/llx_cond_reglement.sql b/mysql/tables/llx_cond_reglement.sql index 8c43bbb7675..890e76a4ffc 100644 --- a/mysql/tables/llx_cond_reglement.sql +++ b/mysql/tables/llx_cond_reglement.sql @@ -25,7 +25,7 @@ create table llx_cond_reglement rowid integer PRIMARY KEY, code varchar(16), sortorder smallint, - actif tinyint DEFAULT 1, + active tinyint DEFAULT 1, libelle varchar(255), libelle_facture text, fdm tinyint, -- reglement fin de mois