Table llx commande fournisseur: Difference between revisions

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
mNo edit summary
(Corrected typos)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Table SQL]]
[[Category:Table SQL]]
  La documentation relative aux autres tables est disponible sur la page [[Liste des tables]]
[[Category:Fournisseur]]
  The documentation related to other tables is available on the tables list page: [[Liste des tables]]
[[Category:Supplier]]
[[Category:Proveedores]]


= Contenu =
{{ListOfTables}}


La table llx_commande_fournisseur contient les commandes fournisseurs (les commandes effectuées auprès des fournisseurs). Ces commandes peuvent plus tard être étendues sous forme de factures fournisseurs, auquel cas c'est la table llx_facture_fourn qui est utilisée, en combinaison (s'il y a un lien entre commande et facture) avec la table llx_comfourn_facfourn.
= Content/Contenu/Contenido =
{{flag en}} Contains suppliers orders. The order details are in [[Table llx_commande_fournisseurdet]]


Contains the provider orders (orders made to the providers). These orders may be later extended as (provider-) invoices, in which case [[Table llx_facture_fourn]] is used, in combination (if there is a link between order and invoice) with [[Table llx_comfourn_facfourn]].
{{flag fr}} Table principales des commandes fournisserus, les détails de la commande sont dans la [[Table llx_commande_fournisseurdet]]
 
{{flag sp}} Tabla principal de los pedidos a proveedores, los detalles de pedidos se encuentran en [[Table llx_commande_fournisseurdet]]


= Structure =
= Structure =
== Table ==
{|  align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox"
|style="background-color: #e9e9ef"| <b>Field</b>
|style="background-color: #e9e9ef"| <b>Type</b>
|style="background-color: #e9e9ef"| <b>Null</b>
|style="background-color: #e9e9ef"| <b>Key</b>
|style="background-color: #e9e9ef"| <b>Default</b>
|style="background-color: #e9e9ef"| <b>Extra</b>
|style="background-color: #e9e9ef"| <b>Description</b>
|-
| rowid
| int(11)
| NO
| PRI
|
| auto_increment
| technical index
|-
| ref
| varchar(30)
| YES
| UNI
|
|
| order number
{{FieldEntity}}
{{FieldRefExt}}
|-
| ref_supplier
| varchar(30)
| YES
|
| NULL
|
| supplier order number
|-
| fk_soc
| int(11)
| NO
| UNI
|
|
| ID society ([[Table llx_societe|llx_societe]]->rowid)
|-
| fk_projet
| int(11)
| YES
|
| 0
|
| ID of proyect ([[Table llx_projet|llx_projet]]->rowid)
{{FieldTms}}
|-
| date_creation
| datetime
| YES
|
| NULL
|
| creation date
|-
| date_valid
| datetime
| YES
|
| NULL
|
| validation date
|-
| date_cloture
| datetime
| YES
|
| NULL
|
| closed date
|-
| date_comande
| date
| YES
|
| NULL
|
| order date
|-
| fk_user_author
| int(11)
| YES
|
| NULL
|
| ID creator user ([[Table llx_user|llx_user]]->rowid)
|-
| fk_user_valid
| int(11)
| YES
|
| NULL
|
| ID validator user ([[Table llx_user|llx_user]]->rowid)
|-
| fk_user_cloture
| int(11)
| YES
|
| NULL
|
| ID closer user ([[Table llx_user|llx_user]]->rowid)
|-
| source
| smallint(6)
| NO
|
|
|
| order source
|-
| fk_statut
| smallint(6)
| YES
|
| 0
|
| ID of status - See [[Module Suppliers (developer)]]
|-
| amount_ht
| real
| YES
|
| 0
|
| amount without tax
|-
| remise_percent
| real
| YES
|
| 0
|
| discount percentage 
|-
| remise
| real
| YES
|
| 0
|
| discount amount
|-
| tva
| double(24,8)
| YES
|
| 0.00000000
|
| VAT
|-
| total_ht
| double(24,8)
| YES
|
| 0.00000000
|
| total without tax
|-
| total_ttc
| double(24,8)
| YES
|
| 0.00000000
|
| total
|-
| note
| text
| YES
|
| NULL
|
| comentary
|-
| note_public
| text
| YES
|
| NULL
|
| public comentary
|-
| model_pdf
| varchar(50)
| YES
|
| NULL
|
| Model PDF to print
|-
| fk_methode_commande
| int(11)
| YES
|
| 0
|
| order method
|}&nbsp;


<pre>
== Keys ==
+---------------------+-------------+------+-----+-------------------+----------------+
{|  align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox"
| Field              | Type        | Null | Key | Default          | Extra          |
|style="background-color: #e9e9ef"| <b>Key</b>
+---------------------+-------------+------+-----+-------------------+----------------+
  |style="background-color: #e9e9ef"| <b>Type</b>
| rowid              | int(11)    | NO  | PRI | NULL              | auto_increment |
  |style="background-color: #e9e9ef"| <b>Fields</b>
| tms                | timestamp  | NO  |    | CURRENT_TIMESTAMP |                |
|-
| fk_soc              | int(11)    | NO  | MUL |                  |                |
| PRIMARY
| fk_projet          | int(11)    | YES |    | 0                 |                |
| PRIMARY
| ref                | varchar(30) | NO  | UNI |                  |                |  
| rowid
| date_creation      | datetime    | YES |     | NULL              |                |  
|-
| date_valid          | datetime    | YES |     | NULL              |                |  
| uk_commande_fournisseur_ref
| date_cloture        | datetime    | YES  |    | NULL              |                |
| UNIQUE
| date_commande      | date        | YES  |    | NULL              |                |
| ref,fk_soc,entity
| fk_user_author      | int(11)    | YES  |    | NULL              |                |
|-
| fk_user_valid      | int(11)    | YES  |    | NULL              |                |
| idx_commande_fournisseur_fk_soc
| fk_user_cloture    | int(11)    | YES  |    | NULL              |                |
| MULTIPLE
| source              | smallint(6) | NO  |    |                  |                |
| fk_soc
| fk_statut          | smallint(6) | YES  |    | 0                |                | 0 pour brouillon, 1 pour validée, 2 pour "approuvée", 5 pour "reçu complètement"
|}&nbsp;
| amount_ht          | double      | YES  |    | 0                |                |
| remise_percent      | double      | YES  |    | 0                |                |
| remise              | double      | YES  |    | 0                |                |
| tva                | double      | YES  |    | 0                |                |
| total_ht            | double      | YES  |    | 0                |                |
| total_ttc          | double      | YES  |    | 0                |                |
| note                | text        | YES  |    | NULL              |                |
| note_public        | text        | YES  |    | NULL              |                |
| model_pdf          | varchar(50) | YES  |    | NULL              |                |
| fk_methode_commande | int(11)    | YES  |    | 0                |                |
+---------------------+-------------+------+-----+-------------------+----------------+
</pre>

Latest revision as of 14:33, 7 July 2015


En verysmall.png The documentation related to other tables is available on the page: Table SQL
Fr verysmall.png La documentation relative aux autres tables est disponible sur la page: Table SQL
Es verysmall.png La documentación relativa a otras tablas se encuentra disponible en la página: Table SQL
De verysmall.png Eine Dokumentation zu weiteren Tabellen ist auf dieser Seite verfügbar: Table SQL
Cn verysmall.png与其他表相关的文档请参阅:Table SQL


Content/Contenu/Contenido

En verysmall.png Contains suppliers orders. The order details are in Table llx_commande_fournisseurdet

Fr verysmall.png Table principales des commandes fournisserus, les détails de la commande sont dans la Table llx_commande_fournisseurdet

Es verysmall.png Tabla principal de los pedidos a proveedores, los detalles de pedidos se encuentran en Table llx_commande_fournisseurdet

Structure

Table

Field Type Null Key Default Extra Description
rowid int(11) NO PRI auto_increment technical index
ref varchar(30) YES UNI order number
entity int(11) NO 1 See page Field Multi company id. (llx_entity->rowid)
ref_ext varchar(30) NO See page Field ref_ext.
ref_supplier varchar(30) YES NULL supplier order number
fk_soc int(11) NO UNI ID society (llx_societe->rowid)
fk_projet int(11) YES 0 ID of proyect (llx_projet->rowid)
tms timestamp NO Current date Date of last modification. See page Field Tms.
date_creation datetime YES NULL creation date
date_valid datetime YES NULL validation date
date_cloture datetime YES NULL closed date
date_comande date YES NULL order date
fk_user_author int(11) YES NULL ID creator user (llx_user->rowid)
fk_user_valid int(11) YES NULL ID validator user (llx_user->rowid)
fk_user_cloture int(11) YES NULL ID closer user (llx_user->rowid)
source smallint(6) NO order source
fk_statut smallint(6) YES 0 ID of status - See Module Suppliers (developer)
amount_ht real YES 0 amount without tax
remise_percent real YES 0 discount percentage
remise real YES 0 discount amount
tva double(24,8) YES 0.00000000 VAT
total_ht double(24,8) YES 0.00000000 total without tax
total_ttc double(24,8) YES 0.00000000 total
note text YES NULL comentary
note_public text YES NULL public comentary
model_pdf varchar(50) YES NULL Model PDF to print
fk_methode_commande int(11) YES 0 order method

 

Keys

Key Type Fields
PRIMARY PRIMARY rowid
uk_commande_fournisseur_ref UNIQUE ref,fk_soc,entity
idx_commande_fournisseur_fk_soc MULTIPLE fk_soc