Table llx product stock: Difference between revisions

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 10: Line 10:
{{flag en}} Contains the stock levels related to products (and warehouses where they are stored)
{{flag en}} Contains the stock levels related to products (and warehouses where they are stored)


{{flag fr}}Contient les stocks rattachés à un produit (et aux entrepôts dans lesquels il est stocké)
{{flag fr}} Contient les stocks rattachés à un produit (et aux entrepôts dans lesquels il est stocké)


{{flag sp}} Contiene los stocks relacionados con un producto (y los almacenes donde está ubicado)
{{flag sp}} Contiene los stocks relacionados con un producto (y los almacenes donde está ubicado)
Line 16: Line 16:
= Structure =
= Structure =
== Table ==
== Table ==
'''Version 1.1 2009/10/07'''
{|  align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox"
{|  align="left" width="100%" border="0" rules="all" cellpadding="1" cellspacing="0" style="margin: 0 0 1px 1px; border: 1px solid #dddddd; border-right-width: 2px; border-bottom-width: 2px; background-color: #f3f3f5"
  |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 25: Line 24:
  |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}}
| rowid
{{FieldTms}}
| int(11)
| NO
| PRI
|
| auto_increment
| technical index
|-
| tms
| timestamp
| NO
|
| CURRENT_TIMESTAMP
|
| timestamp
|-
|-
| fk_product  
| fk_product  
Line 72: Line 57:
| 0.00000000
| 0.00000000
|  
|  
| pmp price
| Deprecated. Not used.
|}&nbsp;
|}&nbsp;
== Keys ==
== Keys ==
'''Version 1.1 2009/10/07'''
{|  align="left" width="100%" border="0" cellpadding="1" cellspacing="0" class="dolbox"
{|  align="left" width="100%" border="0" rules="all" cellpadding="1" cellspacing="0" style="margin: 0 0 1px 1px; border: 1px solid #dddddd; border-right-width: 2px; border-bottom-width: 2px; background-color: #f3f3f5"
  |style="background-color: #e9e9ef"| <b>Key</b>
  |style="background-color: #e9e9ef"| <b>Key</b>
  |style="background-color: #e9e9ef"| <b>Type</b>
  |style="background-color: #e9e9ef"| <b>Type</b>
Line 84: Line 69:
| PRIMARY
| PRIMARY
| rowid
| rowid
|-
| uk_product_stock
| UNIQUE
| fk_product, fk_entrepot
|-  
|-  
| idx_product_stock_fk_product
| idx_product_stock_fk_product

Latest revision as of 09:52, 5 April 2016


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 the stock levels related to products (and warehouses where they are stored)

Fr verysmall.png Contient les stocks rattachés à un produit (et aux entrepôts dans lesquels il est stocké)

Es verysmall.png Contiene los stocks relacionados con un producto (y los almacenes donde está ubicado)

Structure

Table

Field Type Null Key Default Extra Description
rowid integer NO PRI auto_increment Technical index
tms timestamp NO Current date Date of last modification. See page Field Tms.
fk_product int(11) NO MUL ID of product (llx_product->rowid)
fk_entrepot int(11) NO MUL ID of warehouse (llx_entrepot->rowid)
reel real YES NULL Physical stock
pmp double(24,8) NO 0.00000000 Deprecated. Not used.

 

Keys

Key Type Fields
PRIMARY PRIMARY rowid
uk_product_stock UNIQUE fk_product, fk_entrepot
idx_product_stock_fk_product MULTIPLE fk_product
idx_product_stock_fk_entrepot MULTIPLE fk_entrepot