This commit is contained in:
Rodolphe Quiedeville 2005-04-08 07:46:21 +00:00
parent 9acb368a25
commit 4e25c75569
4 changed files with 69 additions and 4 deletions

View File

@ -25,6 +25,8 @@ create table llx_telephonie_client_stats (
fk_client_comm integer NOT NULL, -- Client décideur
ca real,
gain real,
cout real,
marge real,
UNIQUE INDEX(fk_client_comm)
)type=innodb;

View File

@ -31,8 +31,6 @@ create table llx_telephonie_contrat (
statut smallint DEFAULT 0,
remise real DEFAULT 0,
note text,
fk_commercial_sign integer NOT NULL,
fk_commercial_suiv integer NOT NULL,
@ -42,6 +40,8 @@ create table llx_telephonie_contrat (
isfacturable enum('oui','non') DEFAULT 'oui',
mode_paiement enum('vir','pre') DEFAULT 'pre',
note text,
UNIQUE (ref)
)type=innodb;

View File

@ -0,0 +1,36 @@
-- ========================================================================
-- Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
--
-- 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$
--
-- ========================================================================
--
--
create table llx_telephonie_contrat_service (
rowid integer AUTO_INCREMENT PRIMARY KEY,
fk_contrat integer NOT NULL,
fk_service integer NOT NULL,
montant real NOT NULL,
fk_user_creat integer NOT NULL,
date_creat datetime NOT NULL,
fk_user_modif integer,
date_modif datetime
)type=innodb;

View File

@ -1,6 +1,33 @@
-- ========================================================================
-- Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
--
-- 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$
--
-- ========================================================================
--
create table llx_telephonie_tarif (
rowid integer AUTO_INCREMENT PRIMARY KEY,
libelle varchar(255),
rowid integer AUTO_INCREMENT PRIMARY KEY,
libelle varchar(255),
libelle_facture varchar(255),
libelle_fournisseur varchar(255),
mobile tinyint,
international tinyint
UNIQUE INDEX(libelle)
)type=innodb;