[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 -- Generated from dolibarr_mysql2pgsql 2 -- (c) 2004, PostgreSQL Inc. 3 -- (c) 2005, Laurent Destailleur. 4 5 -- =========================================================================== 6 -- Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 7 -- 8 -- This program is free software; you can redistribute it and/or modify 9 -- it under the terms of the GNU General Public License as published by 10 -- the Free Software Foundation; either version 2 of the License, or 11 -- (at your option) any later version. 12 -- 13 -- This program is distributed in the hope that it will be useful, 14 -- but WITHOUT ANY WARRANTY; without even the implied warranty of 15 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 -- GNU General Public License for more details. 17 -- 18 -- You should have received a copy of the GNU General Public License 19 -- along with this program; if not, write to the Free Software 20 -- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 -- 22 -- $Id: llx_facture.sql,v 1.15 2005/12/17 15:31:40 eldy Exp $ 23 -- $Source: /cvsroot/dolibarr/dolibarr/pgsql/tables/llx_facture.sql,v $ 24 -- =========================================================================== 25 26 27 28 29 30 31 32 create table llx_facture 33 ( 34 rowid SERIAL PRIMARY KEY, 35 "facnumber" varchar(30) NOT NULL, 36 "ref_client" varchar(30), 37 "increment" varchar(10), 38 "fk_soc" integer NOT NULL, 39 "datec" timestamp, -- date de creation de la facture 40 "datef" date, -- date de la facture 41 "date_valid" date, -- date de validation 42 "paye" smallint DEFAULT 0 NOT NULL, 43 "amount" real DEFAULT 0 NOT NULL, 44 "remise_percent" real DEFAULT 0, -- remise globale en pourcent 45 "remise" real DEFAULT 0, 46 "tva" real DEFAULT 0, -- montant tva apres remise globale 47 "total" real DEFAULT 0, -- montant total ht apres remise globale 48 "total_ttc" real DEFAULT 0, -- montant total ttc apres remise globale 49 "fk_statut" smallint DEFAULT 0 NOT NULL, 50 "fk_user_author" integer, -- createur de la facture 51 "fk_user_valid" integer, -- valideur de la facture 52 "fk_projet" integer, -- projet auquel est associée la facture 53 "fk_cond_reglement" integer DEFAULT 1 NOT NULL, -- condition de reglement (30 jours, fin de mois ...) 54 "fk_mode_reglement" integer, -- mode de reglement (Virement, Prélèvement) 55 "date_lim_reglement" date, -- date limite de reglement 56 "note" text, 57 "model" varchar(50), 58 UNIQUE(facnumber) 59 ); 60 61 CREATE INDEX idx_llx_facture_facnumber ON llx_facture (facnumber);
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |