Table llx contrat: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
No edit summary
mNo edit summary
Tag: 2017 source edit
 
(10 intermediate revisions by 3 users not shown)
Line 6: Line 6:
{{ListOfTables}}
{{ListOfTables}}


= Contenu =
= Content/Contenu/Contenido =


{{flag en}} Contains the contrats. The contrats details are in [[Table llx_contratdet]]


= Structure =
{{flag fr}} Contient des contrats, les détails du contrat sont dans la [[Table llx_contratdet]]


{{flag sp}} Contiene los contratos, los detalles de los contratos están en [[Table llx_contratdet]]


<pre>
= Structure =
-- ============================================================================
== Table ==
-- Copyright (C) 2002-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
{| align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox"
-- Copyright (C) 2004      Laurent Destailleur  <eldy@users.sourceforge.net>
|style="background-color: #e9e9ef"| <b>Field</b>
--
|style="background-color: #e9e9ef"| <b>Type</b>
-- This program is free software; you can redistribute it and/or modify
|style="background-color: #e9e9ef"| <b>Null</b>
-- it under the terms of the GNU General Public License as published by
|style="background-color: #e9e9ef"| <b>Key</b>
-- the Free Software Foundation; either version 2 of the License, or
|style="background-color: #e9e9ef"| <b>Default</b>
-- (at your option) any later version.
|style="background-color: #e9e9ef"| <b>Extra</b>
--
|style="background-color: #e9e9ef"| <b>Description</b>
-- This program is distributed in the hope that it will be useful,
|-  
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
| rowid
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
| int(11)
-- GNU General Public License for more details.
| NO
--
| PRI
-- You should have received a copy of the GNU General Public License
|
-- along with this program; if not, write to the Free Software
| auto_increment
-- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
| technical index
--
|-
-- $Id: llx_contrat.sql,v 1.5 2004/10/09 10:47:16 opensides Exp $
| ref
-- $Source: /cvsroot/dolibarr/dolibarr/mysql/tables/llx_contrat.sql,v $
| varchar(30)
--
| YES
-- ============================================================================
| UNI
| NULL
|
| contrat reference
{{FieldEntity}}
{{FieldRefExt}}
{{FieldTms}}
|-
| date_c
| datetime
| YES
|
| NULL
|
| creation date
|-
| date_contract
| datetime
| YES
|
| NULL
|
| date of contract
|-
| statut
| smallint(6)
| YES
|
| 0
|
| status of contract, 0=draft,1=validated
|-
| mise_en_service
| datetime
| YES
|
| NULL
|
| date of contract activation
|-
| fin_validite
| datetime
| YES
|
| NULL
|
| date of end validation
|-
| date_cloture
| datetime
| YES
|
| NULL
|
| date of contract close
|-
| fk_soc
| int(11)
| NO
| MUL
| 
|
| ID society ([[Table llx_societe|llx_societe]]->rowid)
|-
| fk_projet
| int(11)
| YES
|
| NULL
|
| ID of proyect ([[Table llx_projet|llx_projet]]->rowid)
|-
| fk_commercial_signature
| int(11)
| NO
|
| 
|
| obsolete
|-
| fk_commercial_suivi
| int(11)
| NO
|
|
|
| obsolete
|-
| fk_user_author
| int(11)
| NO
| MUL
| 0 
|
| ID creator user ([[Table llx_user|llx_user]]->rowid)
|-
| fk_user_mis_en_service
| int(11)
| YES
|
| NULL
|
| ID activator user ([[Table llx_user|llx_user]]->rowid)
|-
| fk_user_cloture
| int(11)
| YES
|
| NULL
|
| ID closer user ([[Table llx_user|llx_user]]->rowid)
|-
| note
| text
| YES
|
| NULL
|
| comentary
|-
| note_public
| text
| YES
|
| NULL
|
| public comentary
{{FieldImportKey}}
|}&nbsp;


create table llx_contrat
== Keys ==
(
{|  align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox"
  rowid          integer AUTO_INCREMENT PRIMARY KEY,
|style="background-color: #e9e9ef"| <b>Key</b>
  tms            timestamp,
|style="background-color: #e9e9ef"| <b>Type</b>
  enservice      smallint DEFAULT 0,
|style="background-color: #e9e9ef"| <b>Fields</b>
  mise_en_service datetime,
|-
  fin_validite    datetime,
| PRIMARY
  date_cloture    datetime,
| PRIMARY
  fk_soc          integer NOT NULL,
| rowid
  fk_product      integer NOT NULL,
|-
  fk_facture      integer NOT NULL default 0,
| uk_contrat_ref
  fk_facturedet  integer NOT NULL default 0,
| UNIQUE
  fk_user_author integer NOT NULL default 0,
| ref,entity
   fk_user_mise_en_service integer,
|-
  fk_user_cloture integer
| idx_contrat_fk_soc 
)type=innodb;
| MULTIPLE
</pre>
| fk_soc  
|-
| idx_contrat_fk_user_author    
| MULTIPLE
| fk_user_author
|}&nbsp;

Navigation menu