31,040
edits
Ikenofopake (talk | contribs) No edit summary |
m (→Structure) Tag: 2017 source edit |
||
| (24 intermediate revisions by 7 users not shown) | |||
| Line 1: | Line 1: | ||
[[Category:Table SQL]] | [[Category:Table SQL]] | ||
[[Category:Third parties]] | [[Category:Third parties]] | ||
| Line 14: | Line 6: | ||
= Content/Contenu/Contenido = | = Content/Contenu/Contenido = | ||
{{flag en}} Contains the list of third parties stored in Dolibarr. | {{flag en}} Contains the list of third parties stored in Dolibarr (thirdparties are customers, suppliers, prospects). | ||
{{flag fr}} Contient les tiers enregistrés dans Dolibarr. | {{flag fr}} Contient les tiers enregistrés dans Dolibarr (les tiers sont les clients, fournisseurs ou prospects). | ||
{{flag sp}} Contiene los terceros registrados en Dolibarr. | {{flag sp}} Contiene los terceros registrados en Dolibarr. | ||
| Line 22: | Line 14: | ||
= Structure = | = Structure = | ||
== Table == | == Table == | ||
{| align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox" | |||
{| align="left" width="100%" border="0 | |style="background-color: #e9e9ef"| <b>Field</b> | ||
|style="background-color: #e9e9ef"| | |style="background-color: #e9e9ef"| <b>Type</b> | ||
|style="background-color: #e9e9ef"| | |style="background-color: #e9e9ef"| <b>Null</b> | ||
|style="background-color: #e9e9ef"| | |style="background-color: #e9e9ef"| <b>Key</b> | ||
|style="background-color: #e9e9ef"| | |style="background-color: #e9e9ef"| <b>Default</b> | ||
|style="background-color: #e9e9ef"| | |style="background-color: #e9e9ef"| <b>Extra</b> | ||
|style="background-color: #e9e9ef"| | |style="background-color: #e9e9ef"| <b>Description</b> | ||
|style="background-color: #e9e9ef"| | |- | ||
|- | | rowid | ||
| rowid | | int(11) | ||
| int(11) | |||
| NO | | NO | ||
| PRI | | PRI | ||
| | | | ||
| auto_increment | | auto_increment | ||
| technical index | | technical index | ||
|- | |||
| nom | |||
| varchar(60) | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| name | |||
|- | |||
| entity | |||
| int(11) | |||
| NO | |||
| | |||
| 1 | |||
| | |||
| multi company id | |||
|- | |||
| ref_ext | |||
| varchar(60) | |||
| YES | |||
| UNI | |||
| NULL | |||
| | |||
| A field only stored and read by Dolibarr but not used. You can use it to store your id of thirdparty into another external system. This will help synchronisation tools. | |||
|- | |||
| ref_int | |||
| varchar(60) | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| | |||
|- | |- | ||
| statut | | statut | ||
| Line 55: | Line 78: | ||
| | | | ||
| parent | | parent | ||
{{FieldTms}} | |||
|- | |- | ||
| datec | | datec | ||
| datetime | | datetime | ||
| YES | | YES | ||
| | | | ||
| NULL | | NULL | ||
| | | | ||
| creation date | | creation date | ||
|- | |- | ||
| | | status | ||
| | | tinyint(4) | ||
| YES | | YES | ||
| | | | ||
| 1 | | 1 | ||
| | | | ||
| | | Thirdparty status : 0=activity ceased, 1= in activity | ||
|- | |- | ||
| code_client | | code_client | ||
| varchar( | | varchar(24) | ||
| YES | | YES | ||
| | | MUL | ||
| NULL | | NULL | ||
| | | | ||
| client code | | client's code | ||
|- | |- | ||
| code_fournisseur | | code_fournisseur | ||
| varchar( | | varchar(24) | ||
| YES | | YES | ||
| | | | ||
| NULL | | NULL | ||
| | | | ||
| | | Supplier code | ||
|- | |- | ||
| code_compta | | code_compta | ||
| varchar( | | varchar(24) | ||
| YES | | YES | ||
| | | | ||
| NULL | | NULL | ||
| | | | ||
| | | Customer account code | ||
|- | |- | ||
| code_compta_fournisseur | | code_compta_fournisseur | ||
| varchar( | | varchar(24) | ||
| YES | | YES | ||
| | | | ||
| NULL | | NULL | ||
| | | | ||
| | | Supplier account code | ||
|- | |- | ||
| | | address | ||
| varchar(255) | | varchar(255) | ||
| YES | | YES | ||
| Line 134: | Line 134: | ||
| NULL | | NULL | ||
| | | | ||
| company | | company address | ||
|- | |- | ||
| | | zip | ||
| varchar(10) | | varchar(10) | ||
| YES | | YES | ||
| Line 144: | Line 144: | ||
| postal code | | postal code | ||
|- | |- | ||
| | | town | ||
| varchar(50) | | varchar(50) | ||
| YES | | YES | ||
| Line 153: | Line 153: | ||
|- | |- | ||
| fk_departement | | fk_departement | ||
| int(11) | | int(11) | ||
| YES | | YES | ||
| | | | ||
| 0 | | 0 | ||
| | | | ||
| ID of | | ID of province/state ([[Table llx_c_departements|llx_c_departements]]->rowid) | ||
|- | |- | ||
| fk_pays | | fk_pays | ||
| int(11) | | int(11) | ||
| YES | | YES | ||
| | | | ||
| 0 | | 0 | ||
| | | | ||
| ID of country ([[Table llx_c_pays|llx_c_pays]]->rowid) | | ID of country ([[Table llx_c_pays|llx_c_pays]]->rowid) | ||
|- | |- | ||
| | | phone | ||
| varchar(20) | | varchar(20) | ||
| YES | | YES | ||
| Line 201: | Line 201: | ||
|- | |- | ||
| fk_secteur | | fk_secteur | ||
| int(11) | | int(11) | ||
| YES | | YES | ||
| | | | ||
| 0 | | 0 | ||
| | | | ||
| | | This column/field does not exist anymore in 3.3.0+ | ||
|- | |- | ||
| fk_effectif | | fk_effectif | ||
| int(11) | | int(11) | ||
| YES | | YES | ||
| | | | ||
| 0 | | 0 | ||
| | | | ||
| ID of | | ID of range of number of employees ([[Table llx_c_effectif|llx_c_effectif]]->id) | ||
|- | |- | ||
| fk_typent | | fk_typent | ||
| int(11) | | int(11) | ||
| YES | | YES | ||
| | | | ||
| 0 | | 0 | ||
| | | | ||
| Line 225: | Line 225: | ||
|- | |- | ||
| fk_forme_juridique | | fk_forme_juridique | ||
| int(11) | | int(11) | ||
| YES | | YES | ||
| | | | ||
| 0 | |||
| | |||
| ID of legal status ([[Table llx_c_forme_juridique|llx_c_forme_juridique]]->rowid) | |||
|- | |||
| fk_currency | |||
| int(11) | |||
| YES | |||
| | |||
| 0 | | 0 | ||
| | | | ||
| | | | ||
|- | |- | ||
| siren | | siren | ||
| varchar( | | varchar(128) | ||
| YES | | YES | ||
| | | | ||
| Line 241: | Line 249: | ||
|- | |- | ||
| siret | | siret | ||
| varchar( | | varchar(128) | ||
| YES | | YES | ||
| | | | ||
| Line 249: | Line 257: | ||
|- | |- | ||
| ape | | ape | ||
| varchar( | | varchar(128) | ||
| YES | | YES | ||
| | | | ||
| Line 257: | Line 265: | ||
|- | |- | ||
| idprof4 | | idprof4 | ||
| varchar( | | varchar(128) | ||
| YES | | YES | ||
| | | | ||
| Line 263: | Line 271: | ||
| | | | ||
| IDProf4 | | IDProf4 | ||
|- | |||
| idprof5 | |||
| varchar(128) | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| IDProf5 | |||
|- | |||
| idprof6 | |||
| varchar(128) | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| idprof6 (this column/field has been newly added) | |||
|- | |- | ||
| tva_intra | | tva_intra | ||
| Line 273: | Line 297: | ||
|- | |- | ||
| capital | | capital | ||
| | | double | ||
| YES | | YES | ||
| | | | ||
| Line 286: | Line 310: | ||
| NULL | | NULL | ||
| | | | ||
| | | | ||
|- | |- | ||
| fk_stcomm | | fk_stcomm | ||
| int(11) | | int(11) | ||
| | | NO | ||
| | | | ||
| 0 | | 0 | ||
| | | | ||
| ID of commercial status ([[Table llx_c_stcomm|llx_c_stcomm]]->id) | | ID of commercial status ([[Table llx_c_stcomm|llx_c_stcomm]]->id) | ||
|- | |- | ||
| | | note_private | ||
| text | | text | ||
| YES | | YES | ||
| Line 302: | Line 326: | ||
| NULL | | NULL | ||
| | | | ||
| | | private note | ||
|- | |- | ||
| | | note_public | ||
| | | text | ||
| YES | | YES | ||
| | | | ||
| | | NULL | ||
| | | | ||
| | | public_note | ||
|- | |- | ||
| prefix_comm | | prefix_comm | ||
| varchar(5) | | varchar(5) | ||
| YES | | YES | ||
| | | MUL | ||
| NULL | | NULL | ||
| | | | ||
| Line 326: | Line 350: | ||
| 0 | | 0 | ||
| | | | ||
| type of client (0/1/2) | | type of client (0/1/2/3) 1=customer 2=prospect 3=customer+prospect | ||
|- | |- | ||
| fournisseur | | fournisseur | ||
| Line 334: | Line 358: | ||
| 0 | | 0 | ||
| | | | ||
| is it a supplier | | is it a third party supplier (0/1)? | ||
|- | |- | ||
| supplier_account | | supplier_account | ||
| Line 342: | Line 366: | ||
| NULL | | NULL | ||
| | | | ||
| | | account of a supplier | ||
|- | |- | ||
| fk_prospectlevel | | fk_prospectlevel | ||
| varchar(12) | | varchar(12) | ||
| YES | | YES | ||
| | | | ||
| NULL | | NULL | ||
| | | | ||
| ID of prospect level ([[Table llx_c_prospectlevel|llx_c_prospectlevel]]->code) | | ID of prospect level ([[Table llx_c_prospectlevel|llx_c_prospectlevel]]->code) | ||
|- | |- | ||
| customer_bad | | customer_bad | ||
| tinyint(4) | | tinyint(4) | ||
| YES | | YES | ||
| Line 358: | Line 382: | ||
| 0 | | 0 | ||
| | | | ||
| is the | | is the customer deadbeat (0/1)? | ||
|- | |- | ||
| customer_rate | | customer_rate | ||
| | | double | ||
| YES | | YES | ||
| | | | ||
| 0 | | 0 | ||
| | | | ||
| reliability rate customer (0 to 1)? | | reliability rate of customer (0 to 1)? | ||
|- | |- | ||
| supplier_rate | | supplier_rate | ||
| | | double | ||
| YES | | YES | ||
| | | | ||
| 0 | | 0 | ||
| | | | ||
| reliability rate supplier (0 to 1)? | | reliability rate of supplier (0 to 1)? | ||
|- | |- | ||
| fk_user_creat | | fk_user_creat | ||
| Line 382: | Line 406: | ||
| NULL | | NULL | ||
| | | | ||
| ID of | | ID of user who created the entry ([[Table llx_user|llx_user]]->rowid) | ||
|- | |- | ||
| fk_user_modif | | fk_user_modif | ||
| Line 390: | Line 414: | ||
| NULL | | NULL | ||
| | | | ||
| ID of | | ID of user who last modified the entry ([[Table llx_user|llx_user]]->rowid) | ||
|- | |- | ||
| remise_client | | remise_client | ||
| | | double | ||
| YES | | YES | ||
| | | | ||
| Line 406: | Line 430: | ||
| NULL | | NULL | ||
| | | | ||
| mode | | default payment mode | ||
|- | |- | ||
| cond_reglement | | cond_reglement | ||
| tinyint(4) | | tinyint(4) | ||
| YES | | YES | ||
| Line 414: | Line 438: | ||
| NULL | | NULL | ||
| | | | ||
| payment conditions | | default payment conditions | ||
|- | |- | ||
| tva_assuj | | tva_assuj | ||
| Line 422: | Line 446: | ||
| 1 | | 1 | ||
| | | | ||
| is subject to VAT? | | Supplier: issues invoices with VAT? / Customer: is subject to VAT? | ||
|- | |- | ||
| localtax1_assuj | | localtax1_assuj | ||
| Line 441: | Line 465: | ||
|- | |- | ||
| | | barcode | ||
| varchar(255) | | varchar(255) | ||
| YES | | YES | ||
| Line 447: | Line 471: | ||
| NULL | | NULL | ||
| | | | ||
| | | This field is used to store barcode value of thirdparty when module barcode is enabled | ||
|- | |||
| fk_barcode_type | |||
| int(11) | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| This field is used to store barcode type (EAN, ISBN, ...) of thirdparty when module barcode is enabled | |||
|- | |- | ||
| price_level | | price_level | ||
| | | int(11) | ||
| YES | | YES | ||
| | | | ||
| Line 456: | Line 488: | ||
| | | | ||
| level of price for multiprices | | level of price for multiprices | ||
|- | |||
| outstanding_limit | |||
| double(24,8) | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| Amount of allowed outstanding invoices before warning | |||
|- | |- | ||
| default_lang | | default_lang | ||
| Line 463: | Line 503: | ||
| NULL | | NULL | ||
| | | | ||
| default language for this | | default language for this thirdparty | ||
|- | |||
| logo | |||
| varchar(255) | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| | |||
|- | |- | ||
| | | canvas | ||
| varchar( | | varchar(32) | ||
| YES | | YES | ||
| | | | ||
| NULL | | NULL | ||
| | | | ||
| | | | ||
|}& | {{FieldImportKey}} | ||
|} | |||
== Keys == | == Keys == | ||
{| align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox" | |||
{| | |style="background-color: #e9e9ef"| <b>Key</b> | ||
|style="background-color: #e9e9ef"| | |style="background-color: #e9e9ef"| <b>Type</b> | ||
|style="background-color: #e9e9ef"| | |style="background-color: #e9e9ef"| <b>Fields</b> | ||
|style="background-color: #e9e9ef"| | |||
|- | |- | ||
| PRIMARY | | PRIMARY | ||
| Line 500: | Line 548: | ||
| MULTIPLE | | MULTIPLE | ||
| fk_user_modif | | fk_user_modif | ||
|}& | |} | ||
= Note = | = Note = | ||