diff --git a/htdocs/telephonie/sql/llx_telephonie_client_stats.sql b/htdocs/telephonie/sql/llx_telephonie_client_stats.sql index ca7b50ac1df..d944ad1423a 100644 --- a/htdocs/telephonie/sql/llx_telephonie_client_stats.sql +++ b/htdocs/telephonie/sql/llx_telephonie_client_stats.sql @@ -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; diff --git a/htdocs/telephonie/sql/llx_telephonie_contrat.sql b/htdocs/telephonie/sql/llx_telephonie_contrat.sql index 56c2bfaddaf..6f32923da70 100644 --- a/htdocs/telephonie/sql/llx_telephonie_contrat.sql +++ b/htdocs/telephonie/sql/llx_telephonie_contrat.sql @@ -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; diff --git a/htdocs/telephonie/sql/llx_telephonie_contrat_service.sql b/htdocs/telephonie/sql/llx_telephonie_contrat_service.sql new file mode 100644 index 00000000000..10506fa0ef2 --- /dev/null +++ b/htdocs/telephonie/sql/llx_telephonie_contrat_service.sql @@ -0,0 +1,36 @@ +-- ======================================================================== +-- Copyright (C) 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 +-- 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; + + diff --git a/htdocs/telephonie/sql/llx_telephonie_tarif.sql b/htdocs/telephonie/sql/llx_telephonie_tarif.sql index 1e22401e2cb..4e50c5265ea 100644 --- a/htdocs/telephonie/sql/llx_telephonie_tarif.sql +++ b/htdocs/telephonie/sql/llx_telephonie_tarif.sql @@ -1,6 +1,33 @@ +-- ======================================================================== +-- Copyright (C) 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 +-- 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;