nouvelle version pour dolibarr 1.1.0
This commit is contained in:
parent
3780321f48
commit
1946922031
@ -27,15 +27,15 @@ OPTIONS=-U $(OWNER)
|
|||||||
all: show
|
all: show
|
||||||
|
|
||||||
create:
|
create:
|
||||||
$(SQL) $(OPTIONS) $(BASE) < llx_actioncomm.sql
|
$(SQL) $(OPTIONS) $(BASE) < actioncomm.sql
|
||||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_actioncomm.sql
|
$(SQL) $(OPTIONS) $(BASE) < c_actioncomm.sql
|
||||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_chargesociales.sql
|
$(SQL) $(OPTIONS) $(BASE) < c_chargesociales.sql
|
||||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_effectif.sql
|
$(SQL) $(OPTIONS) $(BASE) < c_effectif.sql
|
||||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_paiement.sql
|
$(SQL) $(OPTIONS) $(BASE) < c_paiement.sql
|
||||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_pays.sql
|
$(SQL) $(OPTIONS) $(BASE) < c_pays.sql
|
||||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_propalst.sql
|
$(SQL) $(OPTIONS) $(BASE) < c_propalst.sql
|
||||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_stcomm.sql
|
$(SQL) $(OPTIONS) $(BASE) < c_stcomm.sql
|
||||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_typent.sql
|
$(SQL) $(OPTIONS) $(BASE) < c_typent.sql
|
||||||
$(SQL) $(OPTIONS) $(BASE) < llx_adherent.sql
|
$(SQL) $(OPTIONS) $(BASE) < llx_adherent.sql
|
||||||
$(SQL) $(OPTIONS) $(BASE) < llx_bank.sql
|
$(SQL) $(OPTIONS) $(BASE) < llx_bank.sql
|
||||||
$(SQL) $(OPTIONS) $(BASE) < llx_bank_account.sql
|
$(SQL) $(OPTIONS) $(BASE) < llx_bank_account.sql
|
||||||
|
|||||||
@ -21,9 +21,9 @@
|
|||||||
--
|
--
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
|
|
||||||
create table llx_c_actioncomm
|
create table c_actioncomm
|
||||||
(
|
(
|
||||||
id SERIAL,
|
id SERIAL PRIMARY KEY,
|
||||||
libelle varchar(30),
|
libelle varchar(30),
|
||||||
todo int
|
todo int
|
||||||
);
|
);
|
||||||
|
|||||||
@ -20,9 +20,9 @@
|
|||||||
-- $Source$
|
-- $Source$
|
||||||
--
|
--
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
create table llx_c_chargesociales
|
create table c_chargesociales
|
||||||
(
|
(
|
||||||
id SERIAL,
|
id SERIAL PRIMARY KEY,
|
||||||
libelle varchar(80),
|
libelle varchar(80),
|
||||||
deductible smallint NOT NULL default 0
|
deductible smallint NOT NULL default 0
|
||||||
);
|
);
|
||||||
|
|||||||
@ -18,9 +18,9 @@
|
|||||||
--
|
--
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
|
|
||||||
create table llx_c_effectif
|
create table c_effectif
|
||||||
(
|
(
|
||||||
id SERIAL,
|
id SERIAL PRIMARY KEY,
|
||||||
libelle varchar(30)
|
libelle varchar(30)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -28,9 +28,9 @@
|
|||||||
-- 1 : sortie d'argent
|
-- 1 : sortie d'argent
|
||||||
-- 2 : entrée ou sortie d'argent
|
-- 2 : entrée ou sortie d'argent
|
||||||
|
|
||||||
create table llx_c_paiement
|
create table c_paiement
|
||||||
(
|
(
|
||||||
id SERIAL,
|
id SERIAL PRIMARY KEY,
|
||||||
libelle varchar(30),
|
libelle varchar(30),
|
||||||
type smallint
|
type smallint
|
||||||
);
|
);
|
||||||
|
|||||||
@ -18,9 +18,9 @@
|
|||||||
--
|
--
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
|
|
||||||
create table llx_c_pays
|
create table c_pays
|
||||||
(
|
(
|
||||||
id SERIAL,
|
id SERIAL PRIMARY KEY,
|
||||||
libelle varchar(25),
|
libelle varchar(25),
|
||||||
code char(2) NOT NULL
|
code char(2) NOT NULL
|
||||||
);
|
);
|
||||||
|
|||||||
@ -18,9 +18,9 @@
|
|||||||
--
|
--
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
|
|
||||||
create table llx_c_propalst
|
create table c_propalst
|
||||||
(
|
(
|
||||||
id SERIAL,
|
id SERIAL PRIMARY KEY,
|
||||||
label varchar(30)
|
label varchar(30)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -18,9 +18,9 @@
|
|||||||
--
|
--
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
|
|
||||||
create table llx_c_stcomm
|
create table c_stcomm
|
||||||
(
|
(
|
||||||
id SERIAL,
|
id SERIAL PRIMARY KEY,
|
||||||
libelle varchar(30)
|
libelle varchar(30)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -18,8 +18,8 @@
|
|||||||
--
|
--
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
|
|
||||||
create table llx_c_typent
|
create table c_typent
|
||||||
(
|
(
|
||||||
id SERIAL,
|
id SERIAL PRIMARY KEY,
|
||||||
libelle varchar(30)
|
libelle varchar(30)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -24,11 +24,13 @@
|
|||||||
|
|
||||||
create table llx_adherent
|
create table llx_adherent
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
statut smallint NOT NULL DEFAULT 0,
|
statut smallint NOT NULL DEFAULT 0,
|
||||||
|
public smallint NOT NULL DEFAULT 0, -- certain champ de la fiche sont ils public ou pas ?
|
||||||
fk_adherent_type smallint,
|
fk_adherent_type smallint,
|
||||||
datec timestamp,
|
datevalid timestamp, -- date de validation
|
||||||
|
datec timestamp, -- date de creation
|
||||||
prenom varchar(50),
|
prenom varchar(50),
|
||||||
nom varchar(50),
|
nom varchar(50),
|
||||||
societe varchar(50),
|
societe varchar(50),
|
||||||
@ -37,6 +39,9 @@ create table llx_adherent
|
|||||||
ville varchar(50),
|
ville varchar(50),
|
||||||
pays varchar(50),
|
pays varchar(50),
|
||||||
email varchar(255),
|
email varchar(255),
|
||||||
|
login varchar(50) NOT NULL, -- login utilise pour editer sa fiche
|
||||||
|
pass varchar(50), -- pass utilise pour editer sa fiche
|
||||||
|
naiss date, -- date de naissance
|
||||||
fk_user_author integer NOT NULL,
|
fk_user_author integer NOT NULL,
|
||||||
fk_user_valid integer NOT NULL,
|
fk_user_valid integer NOT NULL,
|
||||||
datefin timestamp NOT NULL, -- date de fin de validité de la cotisation
|
datefin timestamp NOT NULL, -- date de fin de validité de la cotisation
|
||||||
|
|||||||
@ -22,12 +22,15 @@
|
|||||||
-- 0 : actif
|
-- 0 : actif
|
||||||
-- 1 : inactif
|
-- 1 : inactif
|
||||||
|
|
||||||
|
|
||||||
create table llx_adherent_type
|
create table llx_adherent_type
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
statut smallint NOT NULL DEFAULT 0,
|
statut smallint NOT NULL DEFAULT 0,
|
||||||
libelle varchar(50),
|
libelle varchar(50),
|
||||||
cotisation enum('yes','no') NOT NULL DEFAULT 'yes',
|
cotisation CHAR(3) CHECK (cotisation IN ('yes','no')) NOT NULL DEFAULT 'yes',
|
||||||
note text
|
vote CHAR(3) CHECK (vote IN ('yes','no')) NOT NULL DEFAULT 'yes',
|
||||||
|
note text,
|
||||||
|
mail_valid text -- mail envoye a la validation
|
||||||
);
|
);
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
create table llx_bank
|
create table llx_bank
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
datec timestamp,
|
datec timestamp,
|
||||||
datev date, -- date de valeur
|
datev date, -- date de valeur
|
||||||
dateo date, -- date operation
|
dateo date, -- date operation
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
||||||
|
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- $Id$
|
||||||
-- $Source$
|
-- $Source$
|
||||||
@ -23,21 +24,18 @@
|
|||||||
|
|
||||||
create table llx_bank_account
|
create table llx_bank_account
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
datec timestamp,
|
datec timestamp,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
label varchar(30),
|
label varchar(30),
|
||||||
bank varchar(255),
|
bank varchar(255),
|
||||||
|
|
||||||
code_banque varchar(7),
|
code_banque varchar(7),
|
||||||
code_guichet varchar(6),
|
code_guichet varchar(6),
|
||||||
number varchar(255),
|
number varchar(255),
|
||||||
cle_rib varchar(5),
|
cle_rib varchar(5),
|
||||||
bic varchar(10),
|
bic varchar(10),
|
||||||
|
|
||||||
iban_prefix varchar(5),
|
iban_prefix varchar(5),
|
||||||
|
|
||||||
domiciliation varchar(50),
|
domiciliation varchar(50),
|
||||||
|
courant smallint default 0 not null,
|
||||||
courant smallint default 0 not null
|
clos smallint default 0 not null
|
||||||
);
|
);
|
||||||
|
|||||||
@ -20,6 +20,6 @@
|
|||||||
|
|
||||||
create table llx_bank_categ
|
create table llx_bank_categ
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
label varchar(255)
|
label varchar(255)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
create table llx_bookmark
|
create table llx_bookmark
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
fk_soc integer,
|
fk_soc integer,
|
||||||
fk_user integer,
|
fk_user integer,
|
||||||
dateb timestamp
|
dateb timestamp
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
create table llx_chargesociales
|
create table llx_chargesociales
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
date_ech timestamp NOT NULL, -- date d'echeance
|
date_ech timestamp NOT NULL, -- date d'echeance
|
||||||
date_pai timestamp, -- date de paiements
|
date_pai timestamp, -- date de paiements
|
||||||
libelle varchar(80),
|
libelle varchar(80),
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
create table llx_compta
|
create table llx_compta
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
datec timestamp,
|
datec timestamp,
|
||||||
datev date, -- date de valeur
|
datev date, -- date de valeur
|
||||||
amount real NOT NULL default 0,
|
amount real NOT NULL default 0,
|
||||||
|
|||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
create table llx_compta_account
|
create table llx_compta_account
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
datec timestamp,
|
datec timestamp,
|
||||||
number varchar(12),
|
number varchar(12),
|
||||||
label varchar(255),
|
label varchar(255),
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
create table llx_cotisation
|
create table llx_cotisation
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
datec timestamp,
|
datec timestamp,
|
||||||
fk_adherent integer,
|
fk_adherent integer,
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
create table llx_domain
|
create table llx_domain
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
datec timestamp,
|
datec timestamp,
|
||||||
label varchar(255),
|
label varchar(255),
|
||||||
note text
|
note text
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
create table llx_don
|
create table llx_don
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
fk_statut smallint NOT NULL DEFAULT 0,-- etat du don promesse/valid
|
fk_statut smallint NOT NULL DEFAULT 0,-- etat du don promesse/valid
|
||||||
datec timestamp, -- date de création de l'enregistrement
|
datec timestamp, -- date de création de l'enregistrement
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
create table llx_don_projet
|
create table llx_don_projet
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
datec timestamp,
|
datec timestamp,
|
||||||
libelle varchar(255),
|
libelle varchar(255),
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
create table llx_fa_pr
|
create table llx_fa_pr
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
fk_facture integer,
|
fk_facture integer,
|
||||||
fk_propal integer
|
fk_propal integer
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
-- ===========================================================================
|
-- ===========================================================================
|
||||||
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
||||||
|
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
@ -22,7 +23,7 @@
|
|||||||
|
|
||||||
create table llx_facture
|
create table llx_facture
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
facnumber varchar(50) NOT NULL,
|
facnumber varchar(50) NOT NULL,
|
||||||
fk_soc integer NOT NULL,
|
fk_soc integer NOT NULL,
|
||||||
datec timestamp, -- date de creation de la facture
|
datec timestamp, -- date de creation de la facture
|
||||||
@ -37,8 +38,12 @@ create table llx_facture
|
|||||||
fk_user integer, -- createur de la facture
|
fk_user integer, -- createur de la facture
|
||||||
fk_user_author integer, -- createur de la propale
|
fk_user_author integer, -- createur de la propale
|
||||||
fk_user_valid integer, -- valideur de la propale
|
fk_user_valid integer, -- valideur de la propale
|
||||||
|
fk_projet integer, -- projet auquel est associé la facture
|
||||||
|
fk_cond_reglement integer, -- condition de reglement
|
||||||
|
date_lim_reglement date, -- date limite de reglement
|
||||||
note text
|
note text
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
create unique index llx_facture_facnumber on llx_facture(facnumber);
|
create unique index llx_facture_facnumber on llx_facture(facnumber);
|
||||||
|
|
||||||
|
create index llx_facture_fksoc on llx_facture(fk_soc);
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
-- ===========================================================================
|
-- ===========================================================================
|
||||||
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
||||||
|
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
@ -23,7 +24,7 @@
|
|||||||
|
|
||||||
create table llx_facture_fourn
|
create table llx_facture_fourn
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
facnumber varchar(50) NOT NULL,
|
facnumber varchar(50) NOT NULL,
|
||||||
fk_soc integer NOT NULL,
|
fk_soc integer NOT NULL,
|
||||||
datec timestamp, -- date de creation de la facture
|
datec timestamp, -- date de creation de la facture
|
||||||
@ -34,11 +35,12 @@ create table llx_facture_fourn
|
|||||||
remise real default 0,
|
remise real default 0,
|
||||||
tva real default 0,
|
tva real default 0,
|
||||||
total 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_statut smallint default 0 NOT NULL,
|
||||||
|
|
||||||
fk_user_author integer, -- createur de la propale
|
fk_user_author integer, -- createur de la propale
|
||||||
fk_user_valid integer, -- valideur de la propale
|
fk_user_valid integer, -- valideur de la propale
|
||||||
|
|
||||||
note text
|
note text
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
||||||
|
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
@ -22,11 +23,16 @@
|
|||||||
|
|
||||||
create table llx_facturedet
|
create table llx_facturedet
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
fk_facture integer,
|
fk_facture integer NOT NULL,
|
||||||
fk_product integer,
|
fk_product integer NOT NULL DEFAULT 0,
|
||||||
datec timestamp,
|
description text,
|
||||||
note varchar(255),
|
tva_taux real default 19.6, -- taux tva
|
||||||
price real default 0
|
qty real, -- quantité
|
||||||
|
remise_percent real default 0, -- pourcentage de remise
|
||||||
|
remise real default 0, -- montant de la remise
|
||||||
|
subprice real, -- prix avant remise
|
||||||
|
price real -- prix final
|
||||||
);
|
);
|
||||||
|
|
||||||
|
CREATE INDEX llx_facturedet_fk_facture ON llx_facturedet (fk_facture);
|
||||||
|
|||||||
@ -23,25 +23,20 @@
|
|||||||
|
|
||||||
create table llx_fichinter
|
create table llx_fichinter
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
fk_soc integer NOT NULL,
|
fk_soc integer NOT NULL,
|
||||||
fk_projet integer default 0, -- projet auquel est rattache la fiche
|
fk_projet integer default 0, -- projet auquel est rattache la fiche
|
||||||
ref varchar(30) NOT NULL, -- number
|
ref varchar(30) NOT NULL, -- number
|
||||||
|
|
||||||
datec timestamp, -- date de creation
|
datec timestamp, -- date de creation
|
||||||
date_valid timestamp, -- date de validation
|
date_valid timestamp, -- date de validation
|
||||||
|
|
||||||
datei date, -- date de l'intervention
|
datei date, -- date de l'intervention
|
||||||
|
|
||||||
fk_user_author integer, -- createur de la fiche
|
fk_user_author integer, -- createur de la fiche
|
||||||
|
|
||||||
fk_user_valid integer, -- valideur de la fiche
|
fk_user_valid integer, -- valideur de la fiche
|
||||||
|
|
||||||
fk_statut smallint default 0,
|
fk_statut smallint default 0,
|
||||||
|
|
||||||
duree real,
|
duree real,
|
||||||
|
|
||||||
note text
|
note text
|
||||||
);
|
);
|
||||||
|
|
||||||
create unique index llx_fichinter_ref on llx_fichinter(ref);
|
CREATE UNIQUE INDEX llx_fichinter_ref ON llx_fichinter(ref);
|
||||||
|
|
||||||
|
CREATE INDEX llx_fichinter_fk_soc ON llx_fichinter(fk_soc);
|
||||||
|
|||||||
@ -18,10 +18,9 @@
|
|||||||
--
|
--
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
|
|
||||||
|
|
||||||
create table llx_paiement
|
create table llx_paiement
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
fk_facture integer,
|
fk_facture integer,
|
||||||
datec timestamp,
|
datec timestamp,
|
||||||
datep timestamp, -- payment date
|
datep timestamp, -- payment date
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- $Id$
|
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- $Source$
|
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
@ -16,17 +16,25 @@
|
|||||||
-- along with this program; if not, write to the Free Software
|
-- along with this program; if not, write to the Free Software
|
||||||
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
--
|
--
|
||||||
|
-- $Id$
|
||||||
|
-- $Source$
|
||||||
|
--
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
|
|
||||||
create table llx_product
|
create table llx_product
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
datec timestamp,
|
datec timestamp,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
ref varchar(15),
|
ref varchar(15),
|
||||||
label varchar(255),
|
label varchar(255),
|
||||||
description text,
|
description text,
|
||||||
price smallint,
|
price double precision,
|
||||||
fk_user_author integer
|
tva_tx double precision default 19.6,
|
||||||
|
fk_user_author integer,
|
||||||
|
envente smallint default 1,
|
||||||
|
nbvente integer default 0,
|
||||||
|
fk_product_type integer default 0,
|
||||||
|
duration varchar(6)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
create table llx_projet
|
create table llx_projet
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
fk_soc integer NOT NULL,
|
fk_soc integer NOT NULL,
|
||||||
fk_statut smallint NOT NULL,
|
fk_statut smallint NOT NULL,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
||||||
|
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- $Id$
|
||||||
-- $Source$
|
-- $Source$
|
||||||
@ -23,31 +24,28 @@
|
|||||||
|
|
||||||
create table llx_propal
|
create table llx_propal
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
fk_soc integer,
|
fk_soc integer,
|
||||||
fk_soc_contact 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
|
ref varchar(30) NOT NULL, -- propal number
|
||||||
|
|
||||||
datec timestamp, -- date de creation
|
datec timestamp, -- date de creation
|
||||||
date_valid timestamp, -- date de validation
|
date_valid timestamp, -- date de validation
|
||||||
date_cloture timestamp, -- date de cloture
|
date_cloture timestamp, -- date de cloture
|
||||||
|
|
||||||
datep date, -- date de la propal
|
datep date, -- date de la propal
|
||||||
|
|
||||||
fk_user_author integer, -- createur de la propale
|
fk_user_author integer, -- createur de la propale
|
||||||
|
|
||||||
fk_user_valid integer, -- valideur 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_cloture integer, -- cloture de la propale signee ou non signee
|
||||||
|
|
||||||
|
|
||||||
fk_statut smallint default 0,
|
fk_statut smallint default 0,
|
||||||
price real default 0,
|
price real default 0,
|
||||||
|
remise_percent real default 0,
|
||||||
remise real default 0,
|
remise real default 0,
|
||||||
tva real default 0,
|
tva real default 0,
|
||||||
total real default 0,
|
total real default 0,
|
||||||
note text
|
note text,
|
||||||
|
model_pdf varchar(50)
|
||||||
);
|
);
|
||||||
|
|
||||||
create unique index llx_propal_ref on llx_propal(ref);
|
create unique index llx_propal_ref on llx_propal(ref);
|
||||||
|
|
||||||
|
create index llx_propal_fk_soc on llx_propal(fk_soc);
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
||||||
|
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
--
|
--
|
||||||
-- $Id$
|
-- $Id$
|
||||||
-- $Source$
|
-- $Source$
|
||||||
@ -23,9 +24,14 @@
|
|||||||
|
|
||||||
create table llx_propaldet
|
create table llx_propaldet
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
fk_propal integer,
|
fk_propal integer,
|
||||||
fk_product integer,
|
fk_product integer,
|
||||||
qty smallint,
|
description text,
|
||||||
price real
|
tva_tx real default 19.6, -- taux tva
|
||||||
|
qty real, -- quantité
|
||||||
|
remise_percent real default 0, -- pourcentage de remise
|
||||||
|
remise real default 0, -- montant de la remise
|
||||||
|
subprice real, -- prix avant remise
|
||||||
|
price real -- prix final
|
||||||
);
|
);
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
create table llx_service
|
create table llx_service
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
datec timestamp,
|
datec timestamp,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
ref varchar(15),
|
ref varchar(15),
|
||||||
|
|||||||
@ -22,9 +22,10 @@
|
|||||||
-- Societes a recontacter
|
-- Societes a recontacter
|
||||||
--
|
--
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
|
|
||||||
create table llx_soc_recontact
|
create table llx_soc_recontact
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
fk_soc integer,
|
fk_soc integer,
|
||||||
datere timestamp,
|
datere timestamp,
|
||||||
author varchar(15)
|
author varchar(15)
|
||||||
|
|||||||
@ -23,9 +23,10 @@
|
|||||||
-- Actions commerciales a effectuer
|
-- Actions commerciales a effectuer
|
||||||
--
|
--
|
||||||
-- ========================================================================
|
-- ========================================================================
|
||||||
|
|
||||||
create table llx_todocomm
|
create table llx_todocomm
|
||||||
(
|
(
|
||||||
id SERIAL,
|
id SERIAL PRIMARY KEY,
|
||||||
datea timestamp, -- date de l'action
|
datea timestamp, -- date de l'action
|
||||||
label varchar(50), -- libelle de l'action
|
label varchar(50), -- libelle de l'action
|
||||||
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
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
create table llx_tva
|
create table llx_tva
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
datep date, -- date de paiement
|
datep date, -- date de paiement
|
||||||
datev date, -- date de valeur
|
datev date, -- date de valeur
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
||||||
|
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- it under the terms of the GNU General Public License as published by
|
||||||
@ -23,7 +24,7 @@
|
|||||||
|
|
||||||
create table llx_user
|
create table llx_user
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
datec timestamp,
|
datec timestamp,
|
||||||
tms timestamp,
|
tms timestamp,
|
||||||
login varchar(8),
|
login varchar(8),
|
||||||
@ -36,9 +37,10 @@ create table llx_user
|
|||||||
webcal_login varchar(25),
|
webcal_login varchar(25),
|
||||||
module_comm smallint default 1,
|
module_comm smallint default 1,
|
||||||
module_compta smallint default 1,
|
module_compta smallint default 1,
|
||||||
|
fk_societe integer default 0,
|
||||||
|
fk_socpeople integer default 0,
|
||||||
note text
|
note text
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
create unique index llx_user_index_login on llx_user(login);
|
create unique index llx_user_login on llx_user(login);
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
create table llx_ventes
|
create table llx_ventes
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
fk_soc integer NOT NULL,
|
fk_soc integer NOT NULL,
|
||||||
fk_product integer NOT NULL,
|
fk_product integer NOT NULL,
|
||||||
dated timestamp, -- date debut
|
dated timestamp, -- date debut
|
||||||
|
|||||||
@ -21,12 +21,10 @@
|
|||||||
--
|
--
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
|
|
||||||
|
|
||||||
create table llx_voyage
|
create table llx_voyage
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
datec timestamp,
|
datec timestamp,
|
||||||
|
|
||||||
dateo date, -- date operation
|
dateo date, -- date operation
|
||||||
date_depart timestamp, -- date du voyage
|
date_depart timestamp, -- date du voyage
|
||||||
date_arrivee timestamp, -- date du voyage
|
date_arrivee timestamp, -- date du voyage
|
||||||
|
|||||||
@ -21,19 +21,16 @@
|
|||||||
--
|
--
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
|
|
||||||
|
|
||||||
create table llx_voyage_reduc
|
create table llx_voyage_reduc
|
||||||
(
|
(
|
||||||
rowid SERIAL,
|
rowid SERIAL PRIMARY KEY,
|
||||||
datec timestamp,
|
datec timestamp,
|
||||||
datev date, -- date de valeur
|
datev date, -- date de valeur
|
||||||
|
|
||||||
date_debut date, -- date operation
|
date_debut date, -- date operation
|
||||||
date_fin date,
|
date_fin date,
|
||||||
amount real NOT NULL default 0,
|
amount real NOT NULL default 0,
|
||||||
label varchar(255),
|
label varchar(255),
|
||||||
numero varchar(255),
|
numero varchar(255),
|
||||||
fk_type smallint, -- Train, Avion, Bateaux
|
fk_type smallint, -- Train, Avion, Bateaux
|
||||||
|
|
||||||
note text
|
note text
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user