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
|
||||
|
||||
create:
|
||||
$(SQL) $(OPTIONS) $(BASE) < llx_actioncomm.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_actioncomm.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_chargesociales.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_effectif.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_paiement.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_pays.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_propalst.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_stcomm.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < llx_c_typent.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < actioncomm.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < c_actioncomm.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < c_chargesociales.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < c_effectif.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < c_paiement.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < c_pays.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < c_propalst.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < c_stcomm.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < c_typent.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < llx_adherent.sql
|
||||
$(SQL) $(OPTIONS) $(BASE) < llx_bank.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),
|
||||
todo int
|
||||
);
|
||||
|
||||
@ -20,9 +20,9 @@
|
||||
-- $Source$
|
||||
--
|
||||
-- ========================================================================
|
||||
create table llx_c_chargesociales
|
||||
create table c_chargesociales
|
||||
(
|
||||
id SERIAL,
|
||||
id SERIAL PRIMARY KEY,
|
||||
libelle varchar(80),
|
||||
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)
|
||||
);
|
||||
|
||||
|
||||
@ -28,9 +28,9 @@
|
||||
-- 1 : 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),
|
||||
type smallint
|
||||
);
|
||||
|
||||
@ -18,9 +18,9 @@
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_pays
|
||||
create table c_pays
|
||||
(
|
||||
id SERIAL,
|
||||
id SERIAL PRIMARY KEY,
|
||||
libelle varchar(25),
|
||||
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)
|
||||
);
|
||||
|
||||
|
||||
@ -18,9 +18,9 @@
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_c_stcomm
|
||||
create table c_stcomm
|
||||
(
|
||||
id SERIAL,
|
||||
id SERIAL PRIMARY KEY,
|
||||
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)
|
||||
);
|
||||
|
||||
@ -24,11 +24,13 @@
|
||||
|
||||
create table llx_adherent
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
tms timestamp,
|
||||
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,
|
||||
datec timestamp,
|
||||
datevalid timestamp, -- date de validation
|
||||
datec timestamp, -- date de creation
|
||||
prenom varchar(50),
|
||||
nom varchar(50),
|
||||
societe varchar(50),
|
||||
@ -37,6 +39,9 @@ create table llx_adherent
|
||||
ville varchar(50),
|
||||
pays varchar(50),
|
||||
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_valid integer NOT NULL,
|
||||
datefin timestamp NOT NULL, -- date de fin de validité de la cotisation
|
||||
|
||||
@ -22,12 +22,15 @@
|
||||
-- 0 : actif
|
||||
-- 1 : inactif
|
||||
|
||||
|
||||
create table llx_adherent_type
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
tms timestamp,
|
||||
statut smallint NOT NULL DEFAULT 0,
|
||||
libelle varchar(50),
|
||||
cotisation enum('yes','no') NOT NULL DEFAULT 'yes',
|
||||
note text
|
||||
cotisation CHAR(3) CHECK (cotisation IN ('yes','no')) NOT NULL DEFAULT 'yes',
|
||||
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
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
datec timestamp,
|
||||
datev date, -- date de valeur
|
||||
dateo date, -- date operation
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2000-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
@ -23,21 +24,18 @@
|
||||
|
||||
create table llx_bank_account
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
datec timestamp,
|
||||
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
|
||||
courant smallint default 0 not null,
|
||||
clos smallint default 0 not null
|
||||
);
|
||||
|
||||
@ -20,6 +20,6 @@
|
||||
|
||||
create table llx_bank_categ
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
label varchar(255)
|
||||
);
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
create table llx_bookmark
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
fk_soc integer,
|
||||
fk_user integer,
|
||||
dateb timestamp
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
-- ========================================================================
|
||||
create table llx_chargesociales
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
date_ech timestamp NOT NULL, -- date d'echeance
|
||||
date_pai timestamp, -- date de paiements
|
||||
libelle varchar(80),
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
|
||||
create table llx_compta
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
datec timestamp,
|
||||
datev date, -- date de valeur
|
||||
amount real NOT NULL default 0,
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
|
||||
create table llx_compta_account
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
datec timestamp,
|
||||
number varchar(12),
|
||||
label varchar(255),
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
create table llx_cotisation
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
tms timestamp,
|
||||
datec timestamp,
|
||||
fk_adherent integer,
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
|
||||
create table llx_domain
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
datec timestamp,
|
||||
label varchar(255),
|
||||
note text
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
create table llx_don
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
tms timestamp,
|
||||
fk_statut smallint NOT NULL DEFAULT 0,-- etat du don promesse/valid
|
||||
datec timestamp, -- date de création de l'enregistrement
|
||||
|
||||
@ -21,7 +21,7 @@
|
||||
|
||||
create table llx_don_projet
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
tms timestamp,
|
||||
datec timestamp,
|
||||
libelle varchar(255),
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
|
||||
create table llx_fa_pr
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
fk_facture integer,
|
||||
fk_propal integer
|
||||
);
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
-- ===========================================================================
|
||||
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- 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
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
@ -22,7 +23,7 @@
|
||||
|
||||
create table llx_facture
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
facnumber varchar(50) NOT NULL,
|
||||
fk_soc integer NOT NULL,
|
||||
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_author integer, -- createur 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
|
||||
|
||||
);
|
||||
|
||||
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) 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
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
@ -23,7 +24,7 @@
|
||||
|
||||
create table llx_facture_fourn
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
facnumber varchar(50) NOT NULL,
|
||||
fk_soc integer NOT NULL,
|
||||
datec timestamp, -- date de creation de la facture
|
||||
@ -34,11 +35,12 @@ create table llx_facture_fourn
|
||||
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
|
||||
|
||||
note text
|
||||
);
|
||||
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- 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
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
@ -22,11 +23,16 @@
|
||||
|
||||
create table llx_facturedet
|
||||
(
|
||||
rowid SERIAL,
|
||||
fk_facture integer,
|
||||
fk_product integer,
|
||||
datec timestamp,
|
||||
note varchar(255),
|
||||
price real default 0
|
||||
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
fk_facture integer NOT NULL,
|
||||
fk_product integer NOT NULL DEFAULT 0,
|
||||
description text,
|
||||
tva_taux 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
|
||||
);
|
||||
|
||||
CREATE INDEX llx_facturedet_fk_facture ON llx_facturedet (fk_facture);
|
||||
|
||||
@ -23,25 +23,20 @@
|
||||
|
||||
create table llx_fichinter
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
fk_soc integer NOT NULL,
|
||||
fk_projet integer default 0, -- projet auquel est rattache la fiche
|
||||
ref varchar(30) NOT NULL, -- number
|
||||
|
||||
datec timestamp, -- date de creation
|
||||
datec timestamp, -- date de creation
|
||||
date_valid timestamp, -- 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_statut smallint default 0,
|
||||
|
||||
duree real,
|
||||
|
||||
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
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
fk_facture integer,
|
||||
datec timestamp,
|
||||
datep timestamp, -- payment date
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
-- ===================================================================
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- 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,17 +16,25 @@
|
||||
-- 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_product
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
datec timestamp,
|
||||
tms timestamp,
|
||||
ref varchar(15),
|
||||
label varchar(255),
|
||||
description text,
|
||||
price smallint,
|
||||
fk_user_author integer
|
||||
price double precision,
|
||||
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
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
fk_soc integer NOT NULL,
|
||||
fk_statut smallint NOT NULL,
|
||||
tms timestamp,
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
-- ===================================================================
|
||||
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- Copyright (C) 2002-2003 Éric Seigne <erics@rycks.com>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
@ -23,31 +24,28 @@
|
||||
|
||||
create table llx_propal
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
fk_soc integer,
|
||||
fk_soc_contact integer,
|
||||
fk_projet integer default 0, -- projet auquel est rattache la propale
|
||||
ref varchar(30) NOT NULL, -- propal number
|
||||
|
||||
datec timestamp, -- date de creation
|
||||
datec timestamp, -- date de creation
|
||||
date_valid timestamp, -- date de validation
|
||||
date_cloture timestamp, -- 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_statut smallint default 0,
|
||||
price real default 0,
|
||||
remise_percent real default 0,
|
||||
remise real default 0,
|
||||
tva 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 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-2003 Éric Seigne <erics@rycks.com>
|
||||
-- Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
--
|
||||
-- $Id$
|
||||
-- $Source$
|
||||
@ -23,9 +24,14 @@
|
||||
|
||||
create table llx_propaldet
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
fk_propal integer,
|
||||
fk_product integer,
|
||||
qty smallint,
|
||||
price real
|
||||
description text,
|
||||
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
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
datec timestamp,
|
||||
tms timestamp,
|
||||
ref varchar(15),
|
||||
|
||||
@ -22,10 +22,11 @@
|
||||
-- Societes a recontacter
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
create table llx_soc_recontact
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
fk_soc integer,
|
||||
datere timestamp,
|
||||
author varchar(15)
|
||||
);
|
||||
);
|
||||
|
||||
@ -23,15 +23,16 @@
|
||||
-- Actions commerciales a effectuer
|
||||
--
|
||||
-- ========================================================================
|
||||
|
||||
create table llx_todocomm
|
||||
(
|
||||
id SERIAL,
|
||||
id SERIAL PRIMARY KEY,
|
||||
datea timestamp, -- date 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_author integer, -- id auteur de l'action
|
||||
fk_soc integer, -- id de la societe auquel est rattachee l'action
|
||||
fk_contact integer, -- id du contact sur laquelle l'action
|
||||
fk_contact integer, -- id du contact sur laquelle l'action
|
||||
-- doit etre effectuee
|
||||
note text
|
||||
);
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
|
||||
create table llx_tva
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
tms timestamp,
|
||||
datep date, -- date de paiement
|
||||
datev date, -- date de valeur
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
-- ============================================================================
|
||||
-- Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
-- 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
|
||||
-- it under the terms of the GNU General Public License as published by
|
||||
@ -23,7 +24,7 @@
|
||||
|
||||
create table llx_user
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
datec timestamp,
|
||||
tms timestamp,
|
||||
login varchar(8),
|
||||
@ -36,9 +37,10 @@ create table llx_user
|
||||
webcal_login varchar(25),
|
||||
module_comm smallint default 1,
|
||||
module_compta smallint default 1,
|
||||
fk_societe integer default 0,
|
||||
fk_socpeople integer default 0,
|
||||
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
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
fk_soc integer NOT NULL,
|
||||
fk_product integer NOT NULL,
|
||||
dated timestamp, -- date debut
|
||||
|
||||
@ -21,12 +21,10 @@
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
create table llx_voyage
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
datec timestamp,
|
||||
|
||||
dateo date, -- date operation
|
||||
date_depart timestamp, -- date du voyage
|
||||
date_arrivee timestamp, -- date du voyage
|
||||
|
||||
@ -21,19 +21,16 @@
|
||||
--
|
||||
-- ===================================================================
|
||||
|
||||
|
||||
create table llx_voyage_reduc
|
||||
(
|
||||
rowid SERIAL,
|
||||
rowid SERIAL PRIMARY KEY,
|
||||
datec timestamp,
|
||||
datev date, -- date de valeur
|
||||
|
||||
date_debut date, -- date operation
|
||||
date_fin date,
|
||||
amount real NOT NULL default 0,
|
||||
label varchar(255),
|
||||
numero varchar(255),
|
||||
fk_type smallint, -- Train, Avion, Bateaux
|
||||
|
||||
note text
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user