From 16c6f68531dec9563086f1466185af53ec4a5f2d Mon Sep 17 00:00:00 2001 From: opensides Date: Wed, 28 Jul 2004 09:53:04 +0000 Subject: [PATCH] ajout des constantes de base pour les repertoires documents --- mysql/data/data.sql | 31 +++++++++++++++++++++++++++++-- mysql/rename-tables.sql | 23 ++++++++++++++++++++++- pgsql/data/data.sql | 24 ++++++++++++++++++++++++ 3 files changed, 75 insertions(+), 3 deletions(-) diff --git a/mysql/data/data.sql b/mysql/data/data.sql index 050f33e1128..b560a56fe97 100644 --- a/mysql/data/data.sql +++ b/mysql/data/data.sql @@ -141,6 +141,8 @@ insert into llx_const (name, value, type) values ('OSC_CATALOG_URL','http://osc. -- Factures -- +insert into llx_const (name, value, type) values ('FAC_OUTPUTDIR','/htdocs/document/facture','chaine'); +insert into llx_const (name, value, type) values ('FAC_OUTPUT_URL','/htdocs/document/facture','chaine'); insert into llx_const (name, value, type) values ('FAC_PDF_INTITULE','Facture','chaine'); insert into llx_const (name, value, type) values ('FAC_PDF_MEL','facture@societe.com','chaine'); insert into llx_const (name, value, type) values ('FAC_PDF_WWW','http://www.societe.com','chaine'); @@ -149,9 +151,31 @@ insert into llx_const (name, value, type) values ('FAC_CAPITAL_EURO','18600','ch insert into llx_const (name, value, type) values ('FAC_PDF_TVA_INTRA','BE 443 698 678','chaine'); insert into llx_const (name, value, type) values ('FAC_PDF_RCS','634 674','chaine'); +-- +-- Propales +-- + +insert into llx_const (name, value, type) values ('PROPALE_OUTPUTDIR','/htdocs/document/propale','chaine'); +insert into llx_const (name, value, type) values ('PROPALE_OUTPUT_URL','/htdocs/document/propale','chaine'); + +-- +-- Ficheinter +-- + +insert into llx_const (name, value, type) values ('FICHEINTER_OUTPUT_DIR','/htdocs/document/ficheinter','chaine'); +insert into llx_const (name, value, type) values ('FICHERINTER_OUTPUT_URL','/htdocs/document/ficheinter','chaine'); + +-- +-- société +-- + +insert into llx_const (name, value, type) values ('SOCIETE_OUTPUT_DIR','/htdocs/document/societe','chaine'); +insert into llx_const (name, value, type) values ('SOCIETE_OUTPUT_URL','/htdocs/document/societe','chaine'); + -- -- Types de charges -- + delete from llx_c_chargesociales; insert into llx_c_chargesociales (id,libelle,deductible) values ( 1, 'Allocations familiales',1); insert into llx_c_chargesociales (id,libelle,deductible) values ( 2, 'GSG Deductible',1); @@ -165,15 +189,16 @@ insert into llx_c_actioncomm (id,libelle) values ( 0, '-'); insert into llx_c_actioncomm (id,libelle) values ( 1, 'Appel Téléphonique'); insert into llx_c_actioncomm (id,libelle) values ( 2, 'Envoi Fax'); insert into llx_c_actioncomm (id,libelle) values ( 3, 'Envoi Proposition'); -insert into llx_c_actioncomm (id,libelle) values ( 4, 'Envoi Email'); +insert into llx_c_actioncomm (id,libelle) values ( 4, 'Envoi Email'); insert into llx_c_actioncomm (id,libelle) values ( 5, 'Prendre rendez-vous'); insert into llx_c_actioncomm (id,libelle) values ( 9, 'Envoi Facture'); insert into llx_c_actioncomm (id,libelle) values (10, 'Relance effectuée'); insert into llx_c_actioncomm (id,libelle) values (11, 'Clôture'); -- +-- Types action -- --- + delete from llx_c_stcomm; insert into llx_c_stcomm (id,libelle) values (-1, 'NE PAS CONTACTER'); insert into llx_c_stcomm (id,libelle) values ( 0, 'Jamais contacté'); @@ -195,8 +220,10 @@ insert into llx_c_typent (id,libelle) values (100, 'Autres'); -- -- Pays -- + insert into llx_c_pays (rowid,libelle,code) values (1, 'France', 'FR'); insert into llx_c_pays (rowid,libelle,code) values (2, 'Belgique', 'BE'); +insert into llx_c_pays (rowid,libelle,code) values (2, 'Belgie', 'BE'); insert into llx_c_pays (rowid,libelle,code) values (3, 'Italie', 'IT'); insert into llx_c_pays (rowid,libelle,code) values (4, 'Espagne', 'ES'); insert into llx_c_pays (rowid,libelle,code) values (5, 'Allemagne', 'DE'); diff --git a/mysql/rename-tables.sql b/mysql/rename-tables.sql index 82cebc1bb03..efd2705c975 100644 --- a/mysql/rename-tables.sql +++ b/mysql/rename-tables.sql @@ -1,7 +1,28 @@ +-- +-- Copyright (C) 2003 Rodolphe Quiedeville +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +-- +-- $Id$ +-- $Source$ +-- + alter table societe rename llx_societe ; alter table socpeople rename llx_socpeople ; alter table socstatutlog rename llx_socstatutlog ; -alter table actioncomm rename llx_actioncomm ; \ No newline at end of file +alter table actioncomm rename llx_actioncomm ; diff --git a/pgsql/data/data.sql b/pgsql/data/data.sql index 1c64150c136..93fa7aed280 100644 --- a/pgsql/data/data.sql +++ b/pgsql/data/data.sql @@ -152,6 +152,8 @@ insert into llx_const (name, value, type) values ('OSC_CATALOG_URL','http://osc. -- Factures -- +insert into llx_const (name, value, type) values ('FAC_OUTPUTDIR','/htdocs/document/facture','chaine'); +insert into llx_const (name, value, type) values ('FAC_OUTPUT_URL','/htdocs/document/facture','chaine'); insert into llx_const (name, value, type) values ('FAC_PDF_INTITULE','Facture','chaine'); insert into llx_const (name, value, type) values ('FAC_PDF_MEL','facture@societe.com','chaine'); insert into llx_const (name, value, type) values ('FAC_PDF_WWW','http://www.societe.com','chaine'); @@ -160,6 +162,27 @@ insert into llx_const (name, value, type) values ('FAC_CAPITAL_EURO','18600','ch insert into llx_const (name, value, type) values ('FAC_PDF_TVA_INTRA','BE 443 698 678','chaine'); insert into llx_const (name, value, type) values ('FAC_PDF_RCS','634 674','chaine'); +-- +-- Propales +-- + +insert into llx_const (name, value, type) values ('PROPALE_OUTPUTDIR','/htdocs/document/propale','chaine'); +insert into llx_const (name, value, type) values ('PROPALE_OUTPUT_URL','/htdocs/document/propale','chaine'); + +-- +-- Ficheinter +-- + +insert into llx_const (name, value, type) values ('FICHEINTER_OUTPUT_DIR','/htdocs/document/ficheinter','chaine'); +insert into llx_const (name, value, type) values ('FICHERINTER_OUTPUT_URL','/htdocs/document/ficheinter','chaine'); + +-- +-- société +-- + +insert into llx_const (name, value, type) values ('SOCIETE_OUTPUT_DIR','/htdocs/document/societe','chaine'); +insert into llx_const (name, value, type) values ('SOCIETE_OUTPUT_URL','/htdocs/document/societe','chaine'); + -- -- Types de charges -- @@ -215,6 +238,7 @@ insert into llx_c_typent (id,libelle) values (100, 'Autres'); delete from llx_c_pays; insert into llx_c_pays (rowid,libelle,code) values (1, 'France', 'FR'); insert into llx_c_pays (rowid,libelle,code) values (2, 'Belgique', 'BE'); +insert into llx_c_pays (rowid,libelle,code) values (2, 'Belgie', 'BE'); insert into llx_c_pays (rowid,libelle,code) values (3, 'Italie', 'IT'); insert into llx_c_pays (rowid,libelle,code) values (4, 'Espagne', 'ES'); insert into llx_c_pays (rowid,libelle,code) values (5, 'Allemagne', 'DE');