Table llx product: Difference between revisions
(→Table) |
(→Table) |
||
| Line 167: | Line 167: | ||
| | | | ||
| | | | ||
| duration of service | | duration of service (Examples: 365d, 12m, 1y) | ||
|- | |- | ||
| seuil_stock_alerte | | seuil_stock_alerte | ||
Revision as of 07:56, 8 September 2010
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 products and services.
Contient les produits et services.
Contiene los productos y servicios.
Structure
Table
Version 1.2 2010/03/18
| Field | Type | Null | Key | Default | Extra | Description |
| rowid | int(11) | NO | PRI | auto_increment | technical index | |
| datec | datetime | YES | NULL | creation date | ||
| tms | timestamp | NO | CURRENT_TIMESTAMP | last update date | ||
| ref | varchar(32) | NO | UNI | reference | ||
| entity | int(11) | NO | UNI | 1 | multi company id | |
| label | varchar(255) | NO | label | |||
| description | text | YES | NULL | description | ||
| note | text | YES | NULL | comentary | ||
| price | double(16,8) | YES | NULL | price unitary | ||
| price_ttc | double(16,8) | YES | 0.00000000 | price with VAT | ||
| price_min_ttc | double(16,8) | YES | 0.00000000 | minium price with VAT | ||
| price_base_type | varchar(3) | YES | HT | type of price (HT or TTC) | ||
| tva_tx | double(6,3) | YES | NULL | TVA rate | ||
| fk_user_author | int(11) | YES | NULL | ID of creator user (llx_user->rowid) | ||
| tosell | tinyint(4) | YES | 1 | May product be sold to customers ? | ||
| tobuy | tinyint(4) | YES | 1 | May product be bought to suppliers ? | ||
| fk_product_type | int(11) | YES | 0 | type of product: 0=regular product, 1=for service, 9=other (used by external modules) | ||
| duration | varchar(6) | YES | duration of service (Examples: 365d, 12m, 1y) | |||
| seuil_stock_alerte | int(11) | YES | 0 | stock alert | ||
| barcode | varchar(255) | YES | MUL | NULL | bar code of product | |
| fk_barcode_type | int(11) | YES | 0 | ID of barcode type (llx_c_barcode_type->rowid) | ||
| partnumber | varchar(32) | YES | NULL | partnumber of product if component | ||
| weight | float | YES | NULL | weight value, depending on weight units | ||
| weight_units | tinyint(4) | YES | NULL | weight units (0=kg,-3=g,-6=mg) | ||
| length | float | YES | NULL | length value, depending on length units | ||
| length_units | tinyint(4) | YES | NULL | length units (0=m,-1=dm,-2=cm) | ||
| surface | float | YES | NULL | area value, depending on area units | ||
| surface_units | tinyint(4) | YES | NULL | area units (0=m2,-2=dm2,-4=cm2) | ||
| volume | float | YES | NULL | volume value | ||
| volume_units | tinyint(4) | YES | NULL | volume units (0=m3,-3=cm3,-6=mm3) | ||
| stock | int(11) | YES | NULL | physical stock | ||
| pmp | double(24,8) | YES | 0.00000000 | pmp price | ||
| canvas | varchar(15) | YES | ||||
| finished | tinyint(4) | YES | NULL | is the product finished? | ||
| hidden | tinyint(4) | YES | 0 | is product hidden to users without permission "See/manage hidden products" | ||
| import_key | varchar(14) | YES | MUL | NULL | import key |
Keys
Version 1.1 2009/10/07
| Key | Type | Fields |
| PRIMARY | PRIMARY | rowid |
| uk_product_ref | UNIQUE | ref,entity |
| idx_product_barcode | MULTIPLE | barcode |
| idx_product_import_key | MULTIPLE | import_key |
Notes
An AJAX search bar for products can be used in place of the drop-down list, by activating, in module products, the option "Use a search bar ..." and leaving AJAX/Javascript enabled in the user interface settings.
It's the method select_produits() of html.form.class.php which will return the list, whether in AJAX or HTML form list.
Une barre de recherche des produits en AJAX peut être utilisée à la place de la liste déroulante, en activant, dans le module produits, l'option "Utiliser une barre de recherche ..." et en laissant AJAX/Javascript activé dans les paramètres d'interface utilisateur.
C'est la méthode select_produits() de html.form.class.php qui se charge de renvoyer la liste, qu'elle soit en AJAX ou en liste de formulaire HTML.
Se puede utilizar una barra de búsqueda de productos en AJAX en vez de la lista despleglable, activando en el módulo de productos la opción "Usar una barra de busqueda..." y activando AJAX/Javascript en los parámetros de interface del usuario.
Es el método select_produits() de html.form.class.php quien se encarga de rellenar la lista, ya sea en AJAX o en lista de formulario HTML.