[ Index ]
 

Code source de Dolibarr 2.0.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/mysql/tables/ -> llx_facture.sql (source)

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


Généré le : Mon Nov 26 12:29:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics