From bfa521a78e4b032b1a37f7c0a50e1feb5d2826e1 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 13 Mar 2003 19:07:52 +0000 Subject: [PATCH] =?UTF-8?q?Un=20peu=20de=20nettoyage=20et=20de=20mise=20?= =?UTF-8?q?=E0=20jour=20de=20notice=20ce=20copyright?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/mysql.sql | 213 ++++++++++++++++++++++++-- mysql/tables/actioncomm.sql | 12 +- mysql/tables/c_paiement.sql | 1 - mysql/tables/llx_adherent.sql | 10 +- mysql/tables/llx_adherent_options.sql | 4 - mysql/tables/llx_adherent_type.sql | 2 +- mysql/tables/llx_auteur.sql | 2 - mysql/tables/llx_bank_account.sql | 5 - mysql/tables/llx_boxes_def.sql | 2 - mysql/tables/llx_cotisation.sql | 5 +- mysql/tables/llx_domain.sql | 6 +- mysql/tables/llx_don.sql | 6 +- mysql/tables/llx_don_projet.sql | 6 +- mysql/tables/llx_editeur.sql | 1 - mysql/tables/llx_fa_pr.sql | 5 +- mysql/tables/llx_fichinter.sql | 11 +- mysql/tables/llx_paiement.sql | 5 +- mysql/tables/llx_pointmort.sql | 5 +- mysql/tables/llx_projet.sql | 6 +- mysql/tables/llx_propal.sql | 15 +- mysql/tables/llx_soc_recontact.sql | 2 +- mysql/tables/llx_transaction_bplc.sql | 4 +- mysql/tables/llx_ventes.sql | 6 +- 23 files changed, 251 insertions(+), 83 deletions(-) diff --git a/mysql/mysql.sql b/mysql/mysql.sql index c33cf5efa74..513d5d1ec65 100644 --- a/mysql/mysql.sql +++ b/mysql/mysql.sql @@ -137,18 +137,22 @@ create table llx_facture_fourn rowid integer AUTO_INCREMENT PRIMARY KEY, facnumber varchar(50) NOT NULL, fk_soc integer NOT NULL, - datec datetime, -- date de creation de la facture - datef date, -- date de la facture + datec datetime, -- date de creation de la facture + datef date, -- date de la facture libelle varchar(255), paye smallint default 0 NOT NULL, amount real default 0 NOT NULL, remise real default 0, tva real default 0, total real default 0, + total_ht real default 0, + total_tva real default 0, + total_ttc real default 0, + fk_statut smallint default 0 NOT NULL, - fk_user_author integer, -- createur de la propale - fk_user_valid integer, -- valideur de la propale + fk_user_author integer, -- createur de la facture + fk_user_valid integer, -- valideur de la facture note text, @@ -179,6 +183,14 @@ create table socstatutlog author varchar(30) ); +create table llx_livre_to_auteur +( + fk_livre integer NOT NULL, + fk_auteur integer NOT NULL +); + +alter table llx_livre_to_auteur add unique key (fk_livre, fk_auteur); + create table llx_fichinter ( rowid integer AUTO_INCREMENT PRIMARY KEY, @@ -208,8 +220,9 @@ create table llx_const ( rowid integer AUTO_INCREMENT PRIMARY KEY, name varchar(255), - value varchar(255), - type enum('yesno'), + value text, -- max 65535 caracteres + type enum('yesno','texte','chaine'), + visible tinyint DEFAULT 1 NOT NULL, note text, UNIQUE INDEX(name) @@ -318,6 +331,18 @@ create table llx_voyage +create table llx_appro +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + datec datetime, + tms timestamp, + fk_product integer NOT NULL, + quantity smallint unsigned NOT NULL, + price real, + fk_user_author integer +); + + create table llx_voyage_reduc ( rowid integer AUTO_INCREMENT PRIMARY KEY, @@ -481,6 +506,20 @@ create table llx_bank_class INDEX(lineid) ); +create table llx_album +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + osc_id integer NOT NULL, + tms timestamp, + ref varchar(12), + title varchar(64), + annee smallint(64), + description text, + collectif tinyint, + fk_user_author integer +); + + create table c_typent ( id integer PRIMARY KEY, @@ -511,6 +550,17 @@ create table c_stcomm ); +create table llx_groupart +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + osc_id integer NOT NULL, + tms timestamp, + nom varchar(64), + groupart enum("artiste","groupe") NOT NULL, + fk_user_author integer +); + + create table llx_chargesociales ( rowid integer AUTO_INCREMENT PRIMARY KEY, @@ -560,6 +610,7 @@ create table llx_facture remise real default 0, tva real default 0, total real default 0, + total_ttc real default 0, fk_statut smallint default 0 NOT NULL, author varchar(50), fk_user integer, -- createur de la facture @@ -606,7 +657,7 @@ create table llx_product rowid integer AUTO_INCREMENT PRIMARY KEY, datec datetime, tms timestamp, - ref varchar(15), + ref varchar(15) UNIQUE, label varchar(255), description text, price smallint, @@ -704,7 +755,9 @@ create table llx_adherent_type statut smallint NOT NULL DEFAULT 0, libelle varchar(50), cotisation enum('yes','no') NOT NULL DEFAULT 'yes', - note text + vote enum('yes','no') NOT NULL DEFAULT 'yes', + note text, + mail_valid text -- mail envoye a la validation ); create table llx_boxes_def @@ -722,18 +775,160 @@ create table llx_adherent_options_label label varchar(255) NOT NULL -- label correspondant a l'attribut ); +create table llx_sqltables +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + name varchar(255), + loaded tinyint(1) +); + + +create table llx_concert +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + tms timestamp, + date_concert datetime NOT NULL, + description text, + collectif tinyint DEFAULT 0 NOT NULL, + fk_groupart integer, + fk_lieu_concert integer, + fk_user_author integer +); + + +create table llx_album_to_groupart +( + fk_album integer NOT NULL, + fk_groupart integer NOT NULL +); + +alter table llx_album_to_groupart add unique key (fk_album, fk_groupart); + +create table llx_lieu_concert +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + tms timestamp, + nom varchar(64) NOT NULL, + description text, + + ville varchar(64) NOT NULL, + + fk_user_author integer +); + + +create table llx_livre +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + oscid integer NOT NULL, + tms timestamp, + status tinyint, + date_ajout datetime, + ref varchar(12), + title varchar(64), + annee smallint(64), + description text, + prix decimal(15,4), + fk_editeur integer, + fk_user_author integer +); + + +create table llx_auteur +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + oscid integer NOT NULL, + tms timestamp, + nom varchar(32), + + fk_user_author integer +); + + +create table llx_editeur +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + oscid integer NOT NULL, + tms timestamp, + nom varchar(32), + + fk_user_author integer +); + + +create table llx_facture_fourn_det +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + fk_facture_fourn integer NOT NULL, + fk_product integer NULL, + description text, + pu_ht real default 0, + qty smallint default 1, + total_ht real default 0, + tva_taux real default 0, + tva real default 0, + total_ttc real default 0 + +); + +insert into llx_sqltables (name, loaded) values ('llx_album',0); + insert into llx_boxes_def (name, file) values ('Factures','box_factures.php'); insert into llx_boxes_def (name, file) values ('Factures impayées','box_factures_imp.php'); insert into llx_boxes_def (name, file) values ('Propales','box_propales.php'); -insert into llx_const(name, value) values ('DONS_FORM','fsfe.fr.php'); +insert into llx_const(name, value, type) values ('DONS_FORM','fsfe.fr.php','chaine'); + +insert into llx_const(name, value, type) values ('FACTURE_ADDON','venus','chaine'); insert into llx_const(name, value, type, note) values ('MAIN_SEARCHFORM_SOCIETE','1','yesno','Affichage du formulaire de recherche des sociétés dans la barre de gauche'); insert into llx_const(name, value, type, note) values ('MAIN_SEARCHFORM_CONTACT','1','yesno','Affichage du formulaire de recherche des contacts dans la barre de gauche'); insert into llx_const(name, value, type, note) values ('COMPTA_ONLINE_PAYMENT_BPLC','1','yesno','Système de gestion de la banque populaire de Lorraine'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_THEME','dolibarr','chaine','theme principal'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_TITLE','Dolibarr','chaine','Titre des pages'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_RESIL','Votre adhesion sur %SERVEUR% vient d\'etre resilie.\r\nNous esperons vous revoir tres bientot','texte','Mail de Resiliation'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_VALID','MAIN\r\nVotre adhesion vient d\'etre validee. \r\nVoici le rappel de vos coordonnees (toute information erronee entrainera la non validation de votre inscription) :\r\n\r\n%INFO%\r\n\r\nVous pouvez a tout moment, grace a votre login et mot de passe, modifier vos coordonnees a l\'adresse suivante : \r\n%SERVEUR%public/adherents/','texte','Mail de validation'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_EDIT','Voici le rappel des coordonnees que vous avez modifiees (toute information erronee entrainera la non validation de votre inscription) :\r\n\r\n%INFO%\r\n\r\nVous pouvez a tout moment, grace a votre login et mot de passe, modifier vos coordonnees a l\'adresse suivante :\r\n%SERVEUR%public/adherents/','texte','Mail d\'edition'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_NEW','Merci de votre inscription. Votre adhesion devrait etre rapidement validee.\r\nVoici le rappel des coordonnees que vous avez rentrees (toute information erronee entrainera la non validation de votre inscription) :\r\n\r\n%INFO%\r\n\r\nVous pouvez a tout moment, grace a votre login et mot de passe, modifier vos coordonnees a l\'adresse suivante :\r\n%SERVEUR%public/adherents/','texte','Mail de nouvel inscription'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_VALID_SUBJECT','Votre adhésion a ete validée sur %SERVEUR%','chaine','sujet du mail de validation'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_RESIL_SUBJECT','Resiliation de votre adhesion sur %SERVEUR%','chaine','sujet du mail de resiliation'); +INSERT INTO llx_const (name, value, type, note) VALUES ('SIZE_LISTE_LIMIT','50','chaine','Taille des listes'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_NEW_SUBJECT','Bienvenue sur %SERVEUR%','chaine','Sujet du mail de nouvelle adhesion'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_EDIT_SUBJECT','Votre fiche a ete editee sur %SERVEUR%','chaine','Sujet du mail d\'edition'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_USE_MAILMAN','1','yesno','Utilisation de Mailman'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAILMAN_UNSUB_URL','http://lists.ipsyn.net/cgi-bin/mailman/handle_opts/%LISTE%/%EMAIL%?upw=%PASS%&unsub=Unsubscribe','chaine','Url de desinscription aux listes mailman'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAILMAN_URL','http://lists.ipsyn.net/cgi-bin/mailman/subscribe/%LISTE%/?email=%EMAIL%&pw=%PASS%&pw-conf=%PASS%','chaine','url pour les inscriptions mailman'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAILMAN_LISTS','test-test,test-test2','chaine','Listes auxquelles inscrire les nouveaux adherents'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_DEBUG','1','yesno','Debug ..'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_USE_GLASNOST','0','yesno','utilisation de glasnost ?'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_GLASNOST_SERVEUR','glasnost.j1b.org','chaine','serveur glasnost'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_GLASNOST_USER','user','chaine','Administrateur glasnost'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_GLASNOST_PASS','password','chaine','password de l\'administrateur'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_USE_GLASNOST_AUTO','1','yesno','inscription automatique a glasnost ?'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_USE_SPIP','1','yesno','Utilisation de SPIP ?'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_USE_SPIP_AUTO','1','yesno','Utilisation de SPIP automatiquement'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_SPIP_USER','user','chaine','user spip'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_SPIP_PASS','pass','chaine','Pass de connection'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_SPIP_SERVEUR','localhost','chaine','serveur spip'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_SPIP_DB','spip','chaine','db spip'); + +INSERT INTO llx_const(name, value, type) VALUES ('DB_NAME_OSC','catalog','chaine'); +INSERT INTO llx_const(name, value, type) VALUES ('OSC_LANGUAGE_ID','1','chaine'); +INSERT INTO llx_const(name, value, type) VALUES ('OSC_CATALOG_URL','http://osc.lafrere.lan/','chaine'); +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_FROM','adherents@domain.com','chaine','From des mails'); + +INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MENU_BARRETOP','default.php','chaine','Module commande'); + + +INSERT INTO llx_const (name, value, type, visible) VALUES ('MAIN_MODULE_COMMANDE','0','yesno',0); +INSERT INTO llx_const (name, value, type, visible) VALUES ('MAIN_MODULE_DON','0','yesno',0); +INSERT INTO llx_const (name, value, type, visible) VALUES ('MAIN_MODULE_ADHERENT','0','yesno',0); + +INSERT INTO llx_const (name, value, type, visible) VALUES ('BOUTIQUE_LIVRE','0','yesno',0); +INSERT INTO llx_const (name, value, type, visible) VALUES ('BOUTIQUE_ALBUM','0','yesno',0); delete from c_chargesociales; insert into c_chargesociales (id,libelle,deductible) values ( 1, 'Allocations familiales',1); diff --git a/mysql/tables/actioncomm.sql b/mysql/tables/actioncomm.sql index 14d8c20cf73..9bf171eaf8f 100644 --- a/mysql/tables/actioncomm.sql +++ b/mysql/tables/actioncomm.sql @@ -25,21 +25,15 @@ create table actioncomm ( id integer AUTO_INCREMENT PRIMARY KEY, - datea datetime, -- action date + datea datetime, -- action date fk_action integer, - - label varchar(50), -- libelle de l'action - + label varchar(50), -- libelle de l'action fk_soc integer, fk_contact integer default 0, - - fk_user_action integer, -- id de la personne qui doit effectuer l'action + fk_user_action integer, -- id de la personne qui doit effectuer l'action fk_user_author integer, - priority smallint, - percent smallint, - note text, propalrowid integer, fk_facture integer diff --git a/mysql/tables/c_paiement.sql b/mysql/tables/c_paiement.sql index eff760a755e..a4b37b29684 100644 --- a/mysql/tables/c_paiement.sql +++ b/mysql/tables/c_paiement.sql @@ -19,7 +19,6 @@ -- $Source$ -- -- ======================================================================== - -- -- Type : -- diff --git a/mysql/tables/llx_adherent.sql b/mysql/tables/llx_adherent.sql index f662ed7b082..7d9c38e2577 100644 --- a/mysql/tables/llx_adherent.sql +++ b/mysql/tables/llx_adherent.sql @@ -20,7 +20,7 @@ -- $Source$ -- -- =================================================================== - +-- -- statut -- 0 : non adherent -- 1 : adherent @@ -43,10 +43,10 @@ create table llx_adherent ville varchar(50), pays varchar(50), email varchar(255), - login varchar(50), -- login utilise pour editer sa fiche - pass varchar(50), -- pass utilise pour editer sa fiche - naiss date, -- date de naissance - photo varchar(255), -- url vers la photo de l'adherent + login varchar(50), -- login utilise pour editer sa fiche + pass varchar(50), -- pass utilise pour editer sa fiche + naiss date, -- date de naissance + photo varchar(255), -- url vers la photo de l'adherent fk_user_author integer NOT NULL, fk_user_mod integer NOT NULL, fk_user_valid integer NOT NULL, diff --git a/mysql/tables/llx_adherent_options.sql b/mysql/tables/llx_adherent_options.sql index eef75a8c99c..8d28decb73d 100644 --- a/mysql/tables/llx_adherent_options.sql +++ b/mysql/tables/llx_adherent_options.sql @@ -21,10 +21,6 @@ -- -- =================================================================== --- statut --- 0 : non adherent --- 1 : adherent - create table llx_adherent_options ( optid integer AUTO_INCREMENT PRIMARY KEY, diff --git a/mysql/tables/llx_adherent_type.sql b/mysql/tables/llx_adherent_type.sql index f2bc6d52fee..41b4147da1f 100644 --- a/mysql/tables/llx_adherent_type.sql +++ b/mysql/tables/llx_adherent_type.sql @@ -20,7 +20,7 @@ -- $Source$ -- -- =================================================================== - +-- -- statut -- 0 : actif -- 1 : inactif diff --git a/mysql/tables/llx_auteur.sql b/mysql/tables/llx_auteur.sql index a8aa49b9d32..38fc93b1f4b 100644 --- a/mysql/tables/llx_auteur.sql +++ b/mysql/tables/llx_auteur.sql @@ -26,7 +26,5 @@ create table llx_auteur oscid integer NOT NULL, tms timestamp, nom varchar(32), - fk_user_author integer ); - diff --git a/mysql/tables/llx_bank_account.sql b/mysql/tables/llx_bank_account.sql index dd3495d9b44..fd8c7ff67e9 100644 --- a/mysql/tables/llx_bank_account.sql +++ b/mysql/tables/llx_bank_account.sql @@ -27,19 +27,14 @@ create table llx_bank_account tms timestamp, label varchar(30), bank varchar(255), - code_banque varchar(7), code_guichet varchar(6), number varchar(255), cle_rib varchar(5), bic varchar(10), - iban_prefix varchar(5), - domiciliation varchar(50), - courant smallint default 0 not null, - clos smallint default 0 not null ); diff --git a/mysql/tables/llx_boxes_def.sql b/mysql/tables/llx_boxes_def.sql index 71592038278..7f2f4231a5f 100644 --- a/mysql/tables/llx_boxes_def.sql +++ b/mysql/tables/llx_boxes_def.sql @@ -19,8 +19,6 @@ -- $Source$ -- -- =========================================================================== --- --- create table llx_boxes_def ( diff --git a/mysql/tables/llx_cotisation.sql b/mysql/tables/llx_cotisation.sql index af712fc2084..f4a9be1e454 100644 --- a/mysql/tables/llx_cotisation.sql +++ b/mysql/tables/llx_cotisation.sql @@ -1,6 +1,5 @@ -- =================================================================== --- $Id$ --- $Source$ +-- 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 @@ -16,6 +15,8 @@ -- 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$ -- =================================================================== create table llx_cotisation diff --git a/mysql/tables/llx_domain.sql b/mysql/tables/llx_domain.sql index f5619172c3a..8e313ce0e52 100644 --- a/mysql/tables/llx_domain.sql +++ b/mysql/tables/llx_domain.sql @@ -1,9 +1,6 @@ -- =================================================================== -- Copyright (C) 2001-2002 Rodolphe Quiedeville -- --- $Id$ --- $Source$ --- -- 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 @@ -18,6 +15,9 @@ -- 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$ +-- -- =================================================================== create table llx_domain diff --git a/mysql/tables/llx_don.sql b/mysql/tables/llx_don.sql index 08198864325..80e70170bca 100644 --- a/mysql/tables/llx_don.sql +++ b/mysql/tables/llx_don.sql @@ -1,6 +1,5 @@ -- =================================================================== --- $Id$ --- $Source$ +-- Copyright (C) 2001-2002 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 @@ -16,6 +15,9 @@ -- 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$ +-- -- =================================================================== create table llx_don diff --git a/mysql/tables/llx_don_projet.sql b/mysql/tables/llx_don_projet.sql index 1dc55571f78..5cd14ea99cd 100644 --- a/mysql/tables/llx_don_projet.sql +++ b/mysql/tables/llx_don_projet.sql @@ -1,6 +1,5 @@ -- =================================================================== --- $Id$ --- $Source$ +-- Copyright (C) 2001-2002 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 @@ -16,6 +15,9 @@ -- 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$ +-- -- =================================================================== create table llx_don_projet diff --git a/mysql/tables/llx_editeur.sql b/mysql/tables/llx_editeur.sql index a4206b7a9ef..5e90df0e734 100644 --- a/mysql/tables/llx_editeur.sql +++ b/mysql/tables/llx_editeur.sql @@ -26,7 +26,6 @@ create table llx_editeur oscid integer NOT NULL, tms timestamp, nom varchar(32), - fk_user_author integer ); diff --git a/mysql/tables/llx_fa_pr.sql b/mysql/tables/llx_fa_pr.sql index 650824fb4bf..757ba38379e 100644 --- a/mysql/tables/llx_fa_pr.sql +++ b/mysql/tables/llx_fa_pr.sql @@ -1,6 +1,5 @@ -- =================================================================== --- $Id$ --- $Source$ +-- Copyright (C) 2001-2002 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 @@ -16,6 +15,8 @@ -- 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$ -- =================================================================== create table llx_fa_pr diff --git a/mysql/tables/llx_fichinter.sql b/mysql/tables/llx_fichinter.sql index f120e73dc23..3469752f992 100644 --- a/mysql/tables/llx_fichinter.sql +++ b/mysql/tables/llx_fichinter.sql @@ -26,20 +26,13 @@ create table llx_fichinter fk_soc integer NOT NULL, fk_projet integer default 0, -- projet auquel est rattache la fiche ref varchar(30) NOT NULL, -- number - datec datetime, -- date de creation date_valid datetime, -- date de validation - datei date, -- date de l'intervention - - fk_user_author integer, -- createur de la fiche - - fk_user_valid integer, -- valideur de la fiche - + fk_user_author integer, -- createur de la fiche + fk_user_valid integer, -- valideur de la fiche fk_statut smallint default 0, - duree real, - note text, UNIQUE INDEX (ref) diff --git a/mysql/tables/llx_paiement.sql b/mysql/tables/llx_paiement.sql index d6f5c586eb7..efc0154d9c6 100644 --- a/mysql/tables/llx_paiement.sql +++ b/mysql/tables/llx_paiement.sql @@ -1,6 +1,5 @@ -- =================================================================== --- $Id$ --- $Source$ +-- Copyright (C) 2001-2002 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 @@ -16,6 +15,8 @@ -- 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$ -- =================================================================== create table llx_paiement diff --git a/mysql/tables/llx_pointmort.sql b/mysql/tables/llx_pointmort.sql index c97d44fc0fe..ead29a869a7 100644 --- a/mysql/tables/llx_pointmort.sql +++ b/mysql/tables/llx_pointmort.sql @@ -1,6 +1,5 @@ -- =================================================================== --- $Id$ --- $Source$ +-- Copyright (C) 2001-2002 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 @@ -16,6 +15,8 @@ -- 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$ -- =================================================================== create table llx_pointmort diff --git a/mysql/tables/llx_projet.sql b/mysql/tables/llx_projet.sql index 7d3ca82c8f4..fa7e97c535d 100644 --- a/mysql/tables/llx_projet.sql +++ b/mysql/tables/llx_projet.sql @@ -1,9 +1,6 @@ -- =========================================================================== -- Copyright (C) 2002 Rodolphe Quiedeville -- --- $Id$ --- $Source$ --- -- 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 @@ -18,6 +15,9 @@ -- 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$ +-- -- =========================================================================== create table llx_projet diff --git a/mysql/tables/llx_propal.sql b/mysql/tables/llx_propal.sql index 92b015cb1df..9ace492e61f 100644 --- a/mysql/tables/llx_propal.sql +++ b/mysql/tables/llx_propal.sql @@ -25,22 +25,15 @@ create table llx_propal rowid integer AUTO_INCREMENT PRIMARY KEY, fk_soc integer, fk_soc_contact integer, - fk_projet integer default 0, -- projet auquel est rattache la propale + fk_projet integer default 0, -- projet auquel est rattache la propale ref varchar(30) NOT NULL, -- propal number - datec datetime, -- date de creation date_valid datetime, -- date de validation date_cloture datetime, -- date de cloture - datep date, -- date de la propal - - fk_user_author integer, -- createur de la propale - - fk_user_valid integer, -- valideur de la propale - - fk_user_cloture integer, -- cloture de la propale signee ou non signee - - + fk_user_author integer, -- createur de la propale + fk_user_valid integer, -- valideur de la propale + fk_user_cloture integer, -- cloture de la propale signee ou non signee fk_statut smallint default 0, price real default 0, remise real default 0, diff --git a/mysql/tables/llx_soc_recontact.sql b/mysql/tables/llx_soc_recontact.sql index ed4499c1d4e..2a30b2d1450 100644 --- a/mysql/tables/llx_soc_recontact.sql +++ b/mysql/tables/llx_soc_recontact.sql @@ -28,4 +28,4 @@ create table llx_soc_recontact fk_soc integer, datere datetime, author varchar(15) -); \ No newline at end of file +); diff --git a/mysql/tables/llx_transaction_bplc.sql b/mysql/tables/llx_transaction_bplc.sql index ce094708c5a..eac5d10ce90 100644 --- a/mysql/tables/llx_transaction_bplc.sql +++ b/mysql/tables/llx_transaction_bplc.sql @@ -1,4 +1,6 @@ -- =================================================================== +-- Copyright (C) 2001-2002 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 @@ -22,7 +24,6 @@ create table llx_transaction_bplc ( rowid integer AUTO_INCREMENT PRIMARY KEY, tms timestamp, - ipclient varchar(20), num_transaction varchar(10), date_transaction varchar(10), @@ -30,7 +31,6 @@ create table llx_transaction_bplc num_autorisation varchar(10), cle_acceptation varchar(5), code_retour integer, - ref_commande integer ); diff --git a/mysql/tables/llx_ventes.sql b/mysql/tables/llx_ventes.sql index e8b119c307b..c0700f93457 100644 --- a/mysql/tables/llx_ventes.sql +++ b/mysql/tables/llx_ventes.sql @@ -1,9 +1,6 @@ -- =================================================================== -- Copyright (C) 2002 Rodolphe Quiedeville -- --- $Id$ --- $Source$ --- -- 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 @@ -18,6 +15,9 @@ -- 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$ +-- -- =================================================================== create table llx_ventes