Table llx societe: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Synchro avec le schema de DB présent en version 3.2) |
||
| Line 22: | Line 22: | ||
|style="background-color: #e9e9ef"| <b>Extra</b> | |style="background-color: #e9e9ef"| <b>Extra</b> | ||
|style="background-color: #e9e9ef"| <b>Description</b> | |style="background-color: #e9e9ef"| <b>Description</b> | ||
|- | |- | ||
| rowid | | rowid | ||
| int(11) | | int(11) | ||
| NO | | NO | ||
| PRI | | PRI | ||
| | | | ||
| auto_increment | | auto_increment | ||
| technical index | | technical index | ||
|- | |- | ||
| Line 38: | Line 38: | ||
| | | | ||
| name | | name | ||
|- | |- | ||
| entity | | entity | ||
| int(11) | | int(11) | ||
| NO | | NO | ||
| | | | ||
| 1 | | 1 | ||
| | | | ||
| multi company id | | multi company id | ||
|- | |- | ||
| ref_ext | | ref_ext | ||
| varchar(60) | | varchar(60) | ||
| | | YES | ||
| UNI | | UNI | ||
| | | NULL | ||
| | | | ||
| A field only stored and read by dolibarr but not used. You can use it to store your id of tirdparty into another external system. This will help synchro tools. | | A field only stored and read by dolibarr but not used. You can use it to store your id of tirdparty into another external system. This will help synchro tools. | ||
|- | |||
| ref_int | |||
| varchar(60) | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| | |||
|- | |- | ||
| statut | | statut | ||
| Line 73: | Line 81: | ||
|- | |- | ||
| datec | | datec | ||
| datetime | | datetime | ||
| YES | | YES | ||
| | | | ||
| NULL | | NULL | ||
| | | | ||
| creation date | | creation date | ||
|- | |- | ||
| datea | | datea | ||
| datetime | | datetime | ||
| YES | | YES | ||
| | | | ||
| NULL | | NULL | ||
| | | | ||
| activation date | | activation date | ||
|- | |||
| status | |||
| tinyint(4) | |||
| YES | |||
| | |||
| 1 | |||
| | |||
| | |||
|- | |- | ||
| code_client | | code_client | ||
| varchar( | | varchar(24) | ||
| YES | | YES | ||
| | | MUL | ||
| NULL | | NULL | ||
| | | | ||
| client code | | client code | ||
|- | |- | ||
| code_fournisseur | | code_fournisseur | ||
| varchar( | | varchar(24) | ||
| YES | | YES | ||
| | | | ||
| Line 105: | Line 121: | ||
|- | |- | ||
| code_compta | | code_compta | ||
| varchar( | | varchar(24) | ||
| YES | | YES | ||
| | | | ||
| Line 112: | Line 128: | ||
| accounting client code | | accounting client code | ||
|- | |- | ||
| code_compta_fournisseur | | code_compta_fournisseur | ||
| varchar( | | varchar(24) | ||
| YES | | YES | ||
| | | | ||
| Line 120: | Line 136: | ||
| accounting supplier code | | accounting supplier code | ||
|- | |- | ||
| | | address | ||
| varchar(255) | | varchar(255) | ||
| YES | | YES | ||
| Line 145: | Line 161: | ||
|- | |- | ||
| fk_departement | | fk_departement | ||
| int(11) | | int(11) | ||
| YES | | YES | ||
| | | | ||
| 0 | | 0 | ||
| | | | ||
| Line 153: | Line 169: | ||
|- | |- | ||
| fk_pays | | fk_pays | ||
| int(11) | | int(11) | ||
| YES | | YES | ||
| | | | ||
| 0 | | 0 | ||
| | | | ||
| Line 191: | Line 207: | ||
| | | | ||
| email | | email | ||
|- | |||
| fk_secteur | |||
| int(11) | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| | |||
|- | |- | ||
| fk_effectif | | fk_effectif | ||
| int(11) | | int(11) | ||
| YES | | YES | ||
| | | | ||
| 0 | | 0 | ||
| | | | ||
| Line 201: | Line 225: | ||
|- | |- | ||
| fk_typent | | fk_typent | ||
| int(11) | | int(11) | ||
| YES | | YES | ||
| | | | ||
| 0 | | 0 | ||
| | | | ||
| Line 209: | Line 233: | ||
|- | |- | ||
| fk_forme_juridique | | fk_forme_juridique | ||
| int(11) | | int(11) | ||
| YES | | YES | ||
| | | | ||
| 0 | | 0 | ||
| | | | ||
| ID of juridical status ([[Table llx_c_forme_juridique|llx_c_forme_juridique]]->rowid) | | ID of juridical status ([[Table llx_c_forme_juridique|llx_c_forme_juridique]]->rowid) | ||
|- | |||
| fk_currency | |||
| int(11) | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| | |||
|- | |- | ||
| siren | | siren | ||
| varchar( | | varchar(128) | ||
| YES | | YES | ||
| | | | ||
| Line 225: | Line 257: | ||
|- | |- | ||
| siret | | siret | ||
| varchar( | | varchar(128) | ||
| YES | | YES | ||
| | | | ||
| Line 233: | Line 265: | ||
|- | |- | ||
| ape | | ape | ||
| varchar( | | varchar(128) | ||
| YES | | YES | ||
| | | | ||
| Line 241: | Line 273: | ||
|- | |- | ||
| idprof4 | | idprof4 | ||
| varchar( | | varchar(128) | ||
| YES | | YES | ||
| | | | ||
| Line 249: | Line 281: | ||
|- | |- | ||
| idprof5 | | idprof5 | ||
| varchar( | | varchar(128) | ||
| YES | | YES | ||
| | | | ||
| Line 255: | Line 287: | ||
| | | | ||
| IDProf5 | | IDProf5 | ||
|- | |- | ||
| tva_intra | | tva_intra | ||
| Line 273: | Line 297: | ||
|- | |- | ||
| capital | | capital | ||
| | | double | ||
| YES | | YES | ||
| | | | ||
| Line 280: | Line 304: | ||
| capital of society | | capital of society | ||
|- | |- | ||
| | | description | ||
| | | text | ||
| YES | | YES | ||
| | | | ||
| NULL | |||
| | |||
| | |||
|- | |||
| fk_stcomm | |||
| int(11) | |||
| NO | |||
| | |||
| 0 | | 0 | ||
| | | | ||
| Line 296: | Line 328: | ||
| comentary | | comentary | ||
|- | |- | ||
| prefix_comm | | services | ||
| tinyint(4) | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| | |||
|- | |||
| prefix_comm | |||
| varchar(5) | | varchar(5) | ||
| YES | | YES | ||
| | | MUL | ||
| NULL | | NULL | ||
| | | | ||
| Line 328: | Line 368: | ||
| customer account to a provider | | customer account to a provider | ||
|- | |- | ||
| 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 345: | Line 385: | ||
|- | |- | ||
| customer_rate | | customer_rate | ||
| | | double | ||
| YES | | YES | ||
| | | | ||
| Line 353: | Line 393: | ||
|- | |- | ||
| supplier_rate | | supplier_rate | ||
| | | double | ||
| YES | | YES | ||
| | | | ||
| Line 377: | Line 417: | ||
|- | |- | ||
| remise_client | | remise_client | ||
| | | double | ||
| YES | | YES | ||
| | | | ||
| Line 392: | Line 432: | ||
| mode of payment by default | | mode of payment by default | ||
|- | |- | ||
| cond_reglement | | cond_reglement | ||
| tinyint(4) | | tinyint(4) | ||
| YES | | YES | ||
| Line 425: | Line 465: | ||
|- | |- | ||
| | | barcode | ||
| varchar(255) | | varchar(255) | ||
| YES | | YES | ||
| Line 431: | Line 471: | ||
| NULL | | NULL | ||
| | | | ||
| | | | ||
|- | |||
| fk_barcode_type | |||
| int(11) | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| | |||
|- | |- | ||
| price_level | | price_level | ||
| | | int(11) | ||
| YES | | YES | ||
| | | | ||
| Line 449: | Line 497: | ||
| default language for this thirdparty | | default language for this thirdparty | ||
|- | |- | ||
| logo | |||
| varchar(255) | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| | |||
|- | |||
| canvas | |||
| varchar(32) | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| | |||
{{FieldImportKey}} | {{FieldImportKey}} | ||
|} | |} | ||
Revision as of 12:17, 8 January 2013
The documentation related to other tables is available on the page: Table SQL
La documentation relative aux autres tables est disponible sur la page: Table SQL
La documentación relativa a otras tablas se encuentra disponible en la página: Table SQL
Eine Dokumentation zu weiteren Tabellen ist auf dieser Seite verfügbar: Table SQL
与其他表相关的文档请参阅:Table SQL
Content/Contenu/Contenido
Contains the list of third parties stored in Dolibarr (thirdparties are customers, suppliers, prospects).
Contient les tiers enregistrés dans Dolibarr (les tiers sont les clients, fournisseurs ou prospects).
Contiene los terceros registrados en Dolibarr.
Structure
Table
| Field | Type | Null | Key | Default | Extra | Description |
| rowid | int(11) | NO | PRI | auto_increment | 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 tirdparty into another external system. This will help synchro tools. | |
| ref_int | varchar(60) | YES | NULL | |||
| statut | tinyint(4) | YES | 0 | state | ||
| parent | int(11) | YES | NULL | parent | ||
| tms | timestamp | NO | Current date | Date of last modification. See page Field Tms. | ||
| datec | datetime | YES | NULL | creation date | ||
| datea | datetime | YES | NULL | activation date | ||
| status | tinyint(4) | YES | 1 | |||
| code_client | varchar(24) | YES | MUL | NULL | client code | |
| code_fournisseur | varchar(24) | YES | NULL | supplier code | ||
| code_compta | varchar(24) | YES | NULL | accounting client code | ||
| code_compta_fournisseur | varchar(24) | YES | NULL | accounting supplier code | ||
| address | varchar(255) | YES | NULL | company adresse | ||
| cp | varchar(10) | YES | NULL | postal code | ||
| ville | varchar(50) | YES | NULL | town | ||
| fk_departement | int(11) | YES | 0 | ID of departement (llx_c_departements->rowid) | ||
| fk_pays | int(11) | YES | 0 | ID of country (llx_c_pays->rowid) | ||
| tel | varchar(20) | YES | NULL | phone number | ||
| fax | varchar(20) | YES | NULL | fax number | ||
| url | varchar(255) | YES | NULL | web url | ||
| varchar(128) | YES | NULL | ||||
| fk_secteur | int(11) | YES | 0 | |||
| fk_effectif | int(11) | YES | 0 | ID of workers range (llx_c_effectif->id) | ||
| fk_typent | int(11) | YES | 0 | ID of type of entity (llx_c_typent->id) | ||
| fk_forme_juridique | int(11) | YES | 0 | ID of juridical status (llx_c_forme_juridique->rowid) | ||
| fk_currency | int(11) | YES | 0 | |||
| siren | varchar(128) | YES | NULL | IDProf1 | ||
| siret | varchar(128) | YES | NULL | IDProf2 | ||
| ape | varchar(128) | YES | NULL | IDProf3 | ||
| idprof4 | varchar(128) | YES | NULL | IDProf4 | ||
| idprof5 | varchar(128) | YES | NULL | IDProf5 | ||
| tva_intra | varchar(20) | YES | NULL | VAT ID | ||
| capital | double | YES | NULL | capital of society | ||
| description | text | YES | NULL | |||
| fk_stcomm | int(11) | NO | 0 | ID of commercial status (llx_c_stcomm->id) | ||
| note | text | YES | NULL | comentary | ||
| services | tinyint(4) | YES | 0 | |||
| prefix_comm | varchar(5) | YES | MUL | NULL | prefix commercial | |
| client | tinyint(4) | YES | 0 | type of client (0/1/2) | ||
| fournisseur | tinyint(4) | YES | 0 | is it a supplier third pary (0/1)? | ||
| supplier_account | varchar(32) | YES | NULL | customer account to a provider | ||
| fk_prospectlevel | varchar(12) | YES | NULL | ID of prospect level (llx_c_prospectlevel->code) | ||
| customer_bad | tinyint(4) | YES | 0 | is the costumer deadbeat (0/1)? | ||
| customer_rate | double | YES | 0 | reliability rate customer (0 to 1)? | ||
| supplier_rate | double | YES | 0 | reliability rate supplier (0 to 1)? | ||
| fk_user_creat | int(11) | YES | MUL | NULL | ID of creator user (llx_user->rowid) | |
| fk_user_modif | int(11) | YES | MUL | NULL | ID of modifier user (llx_user->rowid) | |
| remise_client | double | YES | 0 | systematic discount for the customer | ||
| mode_reglement | tinyint(4) | YES | NULL | mode of payment by default | ||
| cond_reglement | tinyint(4) | YES | NULL | payment conditions by default | ||
| tva_assuj | tinyint(4) | YES | 1 | is subject to VAT? | ||
| localtax1_assuj | tinyint(4) | YES | 0 | is subject to localtax1? | ||
| localtax2_assuj | tinyint(4) | YES | 0 | is subject to localtax2? | ||
| barcode | varchar(255) | YES | NULL | |||
| fk_barcode_type | int(11) | YES | 0 | |||
| price_level | int(11) | YES | NULL | level of price for multiprices | ||
| default_lang | varchar(6) | YES | NULL | default language for this thirdparty | ||
| logo | varchar(255) | YES | NULL | |||
| canvas | varchar(32) | YES | NULL | |||
| import_key | varchar(14) | YES | NULL | Code used to save the import id. See page Field Import key. |
Keys
| Key | Type | Fields |
| PRIMARY | PRIMARY | rowid |
| uk_societe_prefix_comm | UNIQUE | prefix_comm,entity |
| uk_societe_code_client | UNIQUE | code_client,entity |
| idx_societe_user_creat | MULTIPLE | fk_user_creat |
| idx_societe_user_modif | MULTIPLE | fk_user_modif |
Note
Third parties can be:
- suppliers or customers companies (depending on the sub-elements defined) or both.
- A normal person.
- A foundation.
Un tiers peut être:
- une entreprises cliente ou fournisseur (ou les deux)
- une personne physique
- une association/fondation
Un tercero puede ser:
- una empresa cliente o proveedor (o los dos)
- una persona física
- una asociación/fundación