From 70e230cd4a0cc72938eb0cec6b10441267eb6961 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 11 Jun 2005 11:49:53 +0000 Subject: [PATCH] Mise a niveau script pgsql --- pgsql/data/data.sql | 22 ++++++++++++++++------ pgsql/tables/llx_action_def.sql | 1 + pgsql/tables/llx_facture.sql | 8 +++----- 3 files changed, 20 insertions(+), 11 deletions(-) diff --git a/pgsql/data/data.sql b/pgsql/data/data.sql index 2c51f78ced7..6d2fed09151 100644 --- a/pgsql/data/data.sql +++ b/pgsql/data/data.sql @@ -37,11 +37,11 @@ insert into llx_cond_reglement(rowid, code, sortorder, actif, libelle, libelle_f insert into llx_sqltables (name, loaded) values ('llx_album',0); -- --- Définition des action de workflow +-- Définition des actions de workflow notifications -- delete from llx_action_def; -insert into llx_action_def (rowid,titre,description,objet_type) values (1,'Validation fiche intervention','Déclenché lors de la validation d\'une fiche d\'intervention','ficheinter'); -insert into llx_action_def (rowid,titre,description,objet_type) values (2,'Validation facture','Déclenché lors de la validation d\'une facture','facture'); +insert into llx_action_def (rowid,code,titre,description,objet_type) values (1,'NOTIFY_VAL_FICHINTER','Validation fiche intervention','Déclenché lors de la validation d\'une fiche d\'intervention','ficheinter'); +insert into llx_action_def (rowid,code,titre,description,objet_type) values (2,'NOTIFY_VAL_FAC','Validation facture','Déclenché lors de la validation d\'une facture','facture'); -- -- Constantes de configuration @@ -52,8 +52,7 @@ insert into llx_const (name, value, type, note, visible) values ('MAIN_UPLOAD_DO insert into llx_const (name, value, type, note, visible) values ('MAIN_NOT_INSTALLED','1','chaine','Test d\'installation',1); insert into llx_const (name, value, type, note, visible) values ('MAIN_MAIL_FROM','dolibarr-robot@domain.com','chaine','EMail emetteur pour les notifications automatiques Dolibarr',1); -insert into llx_const (name, value, type, note, visible) values ('MAIN_TITLE','Dolibarr','chaine','Titre des pages',1); -insert into llx_const (name, value, type, note, visible) values ('MAIN_DEBUG','0','yesno','Mode debug actif ou non',1); +insert into llx_const (name, value, type, note, visible) values ('MAIN_TITLE','Dolibarr','chaine','Titre des pages',0); insert into llx_const (name, value, type, note, visible) values ('COMPTA_ONLINE_PAYMENT_BPLC','1','yesno','Système de gestion de la banque populaire de Lorraine',0); @@ -137,6 +136,16 @@ insert into llx_const (name, value, type) values ('DB_NAME_OSC','catalog','chain 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, visible) values ('FACTURE_ADDON', 'jupiter','chaine',0); +insert into llx_const (name, value, type, visible) values ('FACTURE_ADDON_PDF', 'crabe','chaine',0); +insert into llx_const (name, value, type, visible) values ('COMMANDE_ADDON', 'mod_commande_ivoire','chaine',0); +insert into llx_const (name, value, type, visible) values ('EXPEDITION_ADDON_PDF','rouget','chaine',0); +insert into llx_const (name, value, type, visible) values ('PROPALE_ADDON', 'mod_propale_ivoire','chaine',0); +insert into llx_const (name, value, type, visible) values ('FACTURE_ADDON_PDF', 'azur','chaine',0); + -- Dictionnaires llx_c @@ -540,6 +549,7 @@ insert into llx_c_pays (rowid,code,libelle) values (21, 'CI', 'C insert into llx_c_pays (rowid,code,libelle) values (23, 'SN', 'Sénégal' ); insert into llx_c_pays (rowid,code,libelle) values (24, 'AR', 'Argentine' ); insert into llx_c_pays (rowid,code,libelle) values (25, 'CM', 'Cameroun' ); +insert into llx_c_pays (rowid,code,libelle) values (26, 'PT', 'Portugal' ); -- -- Types etat propales @@ -617,7 +627,7 @@ insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values ( insert into llx_c_regions (rowid,fk_pays,code_region,cheflieu,tncc,nom) values (203,2,203,'',3,'Bruxelles-Capitale'); -- --- Devises +-- Devises (code secondaire - code ISO4217 - libelle fr) -- insert into llx_c_currencies ( code, code_iso, active, label ) values ( 'BT', 'THB', 1, 'Bath thailandais'); diff --git a/pgsql/tables/llx_action_def.sql b/pgsql/tables/llx_action_def.sql index f4d84cc8327..99c9dceb3de 100644 --- a/pgsql/tables/llx_action_def.sql +++ b/pgsql/tables/llx_action_def.sql @@ -29,6 +29,7 @@ create table llx_action_def ( rowid integer NOT NULL PRIMARY KEY, + "code" varchar(24) UNIQUE NOT NULL, "tms" timestamp, "titre" varchar(255) NOT NULL, "description" text, diff --git a/pgsql/tables/llx_facture.sql b/pgsql/tables/llx_facture.sql index ac580ac5335..138d0e7f2b9 100644 --- a/pgsql/tables/llx_facture.sql +++ b/pgsql/tables/llx_facture.sql @@ -3,7 +3,7 @@ -- (c) 2005, Laurent Destailleur. -- =========================================================================== --- Copyright (C) 2001-2003 Rodolphe Quiedeville +-- Copyright (C) 2001-2005 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 @@ -40,10 +40,8 @@ create table llx_facture "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 - "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 "fk_projet" integer, -- projet auquel est associé la facture "fk_cond_reglement" integer DEFAULT 1 NOT NULL, -- condition de reglement (30 jours, fin de mois ...) "fk_mode_reglement" integer, -- mode de reglement (Virement, Prélèvement)