715
edits
(→Notes) Tag: 2017 source edit |
|||
| (46 intermediate revisions by 5 users not shown) | |||
| Line 12: | Line 12: | ||
{{flag sp}} Contiene los productos y servicios. | {{flag sp}} Contiene los productos y servicios. | ||
{{flag cn}} 包含产品和服务的列表。 | |||
= Structure = | = Structure = | ||
{| align="left" width="100%" border="0 | == 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>Field</b> | ||
|style="background-color: #e9e9ef"| <b>Type</b> | |style="background-color: #e9e9ef"| <b>Type</b> | ||
| Line 22: | Line 25: | ||
|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> | ||
|- | {{FieldRowid}} | ||
| | |- | ||
| | | ref | ||
| | | varchar(32) | ||
| | | NO | ||
| | | UNI | ||
| | | | ||
| | | | ||
| Reference | |||
{{FieldEntity}} | |||
{{FieldRefExt}} | |||
|- | |- | ||
| datec | | datec | ||
| Line 37: | Line 43: | ||
| NULL | | NULL | ||
| | | | ||
| | | Creation date | ||
{{FieldTms}} | |||
|- | |- | ||
| | | virtual | ||
| | | tinyint | ||
| NO | | NO | ||
| | | | ||
| | | | ||
| | | | ||
| Not used | |||
|- | |- | ||
| | | fk_parent | ||
| | | integer | ||
| NO | | NO | ||
| | | | ||
| | | | ||
| | | | ||
| | | Not used | ||
|- | |- | ||
| label | | label | ||
| Line 69: | Line 68: | ||
| | | | ||
| | | | ||
| | | Label of product/service | ||
|- | |- | ||
| description | | description | ||
| Line 77: | Line 76: | ||
| NULL | | NULL | ||
| | | | ||
| | | Description | ||
|- | |- | ||
| note | | note | ||
| Line 85: | Line 84: | ||
| NULL | | NULL | ||
| | | | ||
| | | Comment | ||
|- | |||
| customcode | |||
| text | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| Code, required by customs of your country, to show on documents | |||
|- | |||
| fk_country | |||
| int | |||
| YES | |||
| | |||
| NULL | |||
| | |||
| Id of country of origin of product (required by customs of your country) | |||
|- | |- | ||
| price | | price | ||
| double( | | double(24,8) | ||
| YES | | YES | ||
| | | | ||
| | | 0.00000000 | ||
| | | | ||
| price | | Unit price without tax | ||
|- | |- | ||
| price_ttc | | price_ttc | ||
| double( | | double(24,8) | ||
| YES | | YES | ||
| | | | ||
| 0.00000000 | | 0.00000000 | ||
| | | | ||
| price | | Unit price inc VAT | ||
|- | |||
| price_min | |||
| double(24,8) | |||
| YES | |||
| | |||
| 0.00000000 | |||
| | |||
| Minimum price without tax | |||
|- | |- | ||
| price_min_ttc | | price_min_ttc | ||
| double( | | double(24,8) | ||
| YES | | YES | ||
| | | | ||
| 0.00000000 | | 0.00000000 | ||
| | | | ||
| | | Minimum price inc tax | ||
|- | |- | ||
| price_base_type | | price_base_type | ||
| Line 117: | Line 140: | ||
| HT | | HT | ||
| | | | ||
| | | Base of price (HT=Without vat, TTC=Including tax) | ||
|- | |- | ||
| tva_tx | | tva_tx | ||
| Line 125: | Line 148: | ||
| NULL | | NULL | ||
| | | | ||
| | | Default vat rate of product | ||
|- | |||
| recuperableonly | |||
| integer | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| Is it a French VAT NPR or not ? | |||
|- | |||
| localtax1_tx | |||
| double(6,3) | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| Default vat 2 rate of product (for countries using 2 taxes for each lines). Note: with 3.9 version, this field is not used. When entering a line into a document Dolibarr search first entry into table llx_c_tva with couple (product vat rate, product npr) to get value for localtax type and rate and store this found value into lines of document. | |||
|- | |||
| localtax1_type | |||
| varchar(10) | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| Default vat 2 type (for countries using 2 taxes for each lines). Note: with 3.9 version, this field is not used. When entering a line into a document Dolibarr search first entry into table llx_c_tva with couple (product vat rate, product npr) to get value for localtax type and rate and store this found value into lines of document. | |||
|- | |||
| localtax2_tx | |||
| double(6,3) | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| Default vat 3 rate of product (for countries using 3 taxes for each lines). Note: with 3.9 version, this field is not used. When entering a line into a document Dolibarr search first entry into table llx_c_tva with couple (product vat rate, product npr) to get value for localtax type and rate and store this found value into lines of document. | |||
|- | |||
| localtax2_type | |||
| varchar(10) | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| Default vat 3 type (for countries using 2 taxes for each lines). Note: with 3.9 version, this field is not used. When entering a line into a document Dolibarr search first entry into table llx_c_tva with couple (product vat rate, product npr) to get value for localtax type and rate and store this found value into lines of document. | |||
|- | |- | ||
| fk_user_author | | fk_user_author | ||
| Line 135: | Line 198: | ||
| ID of creator user ([[Table llx_user|llx_user]]->rowid) | | ID of creator user ([[Table llx_user|llx_user]]->rowid) | ||
|- | |- | ||
| | | tosell | ||
| tinyint(4) | |||
| YES | |||
| | |||
| 1 | |||
| | |||
| Is product for sale to customers (finished goods)? | |||
|- | |||
| tobuy | |||
| tinyint(4) | | tinyint(4) | ||
| YES | | YES | ||
| Line 141: | Line 212: | ||
| 1 | | 1 | ||
| | | | ||
| | | Is product bought from suppliers (finished goods/raw materials, not virtual product/kit)? | ||
|- | |||
| tobatch | |||
| tinyint(4) | |||
| NO | |||
| | |||
| 0 | |||
| | |||
| Does product has batch number, eat-by and/or sell-by date ? | |||
|- | |- | ||
| fk_product_type | | fk_product_type | ||
| Line 149: | Line 228: | ||
| 0 | | 0 | ||
| | | | ||
| type of product | | type of product: 0=regular product, 1=for service, 9=other (used by external modules) | ||
|- | |- | ||
| duration | | duration | ||
| Line 157: | Line 236: | ||
| | | | ||
| | | | ||
| duration of service | | duration of service (Examples: 365d, 12m, 1y) | ||
|- | |- | ||
| seuil_stock_alerte | | seuil_stock_alerte | ||
| Line 165: | Line 244: | ||
| 0 | | 0 | ||
| | | | ||
| stock alert | | Minimum value in stock to report an alert | ||
|- | |- | ||
| | | desired_stock | ||
| | | int(11) | ||
| YES | | YES | ||
| | | | ||
| | | 0 | ||
| | | | ||
| | | Value we always want to keep in stock (may differ from value to report an alert) | ||
|- | |- | ||
| barcode | | barcode | ||
| varchar(255) | | varchar(255) | ||
| YES | | YES | ||
| | | MUL | ||
| NULL | | NULL | ||
| | | | ||
| | | Barcode number (when using barcode module) | ||
|- | |- | ||
| fk_barcode_type | | fk_barcode_type | ||
| Line 190: | Line 269: | ||
| | | | ||
| ID of barcode type ([[Table llx_c_barcode_type|llx_c_barcode_type]]->rowid) | | ID of barcode type ([[Table llx_c_barcode_type|llx_c_barcode_type]]->rowid) | ||
|- | |||
| accountancy_code_sell | |||
| varchar(15) | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| Accountancy code (sell) | |||
|- | |||
| accountancy_code_buy | |||
| varchar(15) | |||
| YES | |||
| | |||
| 0 | |||
| | |||
| Accountancy code (buy) | |||
|- | |- | ||
| partnumber | | partnumber | ||
| Line 197: | Line 292: | ||
| NULL | | NULL | ||
| | | | ||
| | | Not Used. Field can be used by external modules | ||
|- | |- | ||
| weight | | weight | ||
| Line 214: | Line 309: | ||
| | | | ||
| weight units (0=kg,-3=g,-6=mg) | | 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 | | volume | ||
| Line 221: | Line 348: | ||
| NULL | | NULL | ||
| | | | ||
| volume value | | volume value, depending on volume area units | ||
|- | |- | ||
| volume_units | | volume_units | ||
| Line 237: | Line 364: | ||
| NULL | | NULL | ||
| | | | ||
| | | Physical stock. This field is a denormalized value (so not reliable) of count into [[Table llx_product_stock]] (using this table is reliable). | ||
|- | |- | ||
| pmp | | pmp | ||
| double( | | double(24,8) | ||
| YES | | YES | ||
| | | | ||
| | | 0.00000000 | ||
| | | | ||
| | | Weighted Average Price of product | ||
|- | |- | ||
| canvas | | canvas | ||
| Line 261: | Line 388: | ||
| NULL | | NULL | ||
| | | | ||
| | | Is the product a finished product? | ||
|- | |- | ||
| | | hidden | ||
| | | tinyint(4) | ||
| YES | | YES | ||
| | |||
| 0 | |||
| | | | ||
| | | Not used. Deprecated field. | ||
| | {{FieldImportKey}} | ||
| | |} | ||
|} | |||
== Keys == | |||
{| aalign="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox" | |||
|style="background-color: #e9e9ef"| <b>Key</b> | |||
|style="background-color: #e9e9ef"| <b>Type</b> | |||
|style="background-color: #e9e9ef"| <b>Fields</b> | |||
|- | |||
| PRIMARY | |||
| PRIMARY | |||
| rowid | |||
|- | |||
| uk_product_ref | |||
| UNIQUE | |||
| ref,entity | |||
|- | |||
| idx_product_barcode | |||
| MULTIPLE | |||
| barcode | |||
|- | |||
| idx_product_import_key | |||
| MULTIPLE | |||
| import_key | |||
|} | |||
= Notes = | = Notes = | ||
{{flag_fr}} 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 activé dans les paramètres d'interface utilisateur. | {{flag_en}} 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. | |||
{{flag_fr}} 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. | 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. | ||
{{ | {{flag_sp}} 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. | |||
{{ | {{flag_cn}} 通过激活产品模块中的选项“使用搜索栏…”并在用户界面设置中启用 AJAX/Javascript,可以使用产品的AJAX搜索栏来代替下拉列表。它是 html.form.class.php 的方法 select_produits(),它将返回列表,无论是AJAX还是html表单列表。 | ||
edits