From f7eea2ea5bc7b8cb74fbd8b48cb08652f58947ff Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Wed, 13 Dec 2006 14:15:49 +0000 Subject: [PATCH] Ajout table llx_stock_valorisation --- mysql/migration/2.0.0-2.1.0.sql | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index 20ecd88ecb4..54a783743e2 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -555,3 +555,21 @@ create table llx_commande_fournisseur_dispatch )type=innodb; ALTER TABLE llx_commande_fournisseur_dispatch ADD INDEX (fk_commande); + +create table llx_stock_valorisation +( + rowid integer AUTO_INCREMENT PRIMARY KEY, + tms timestamp, -- date technique mise à jour automatiquement + date_valo datetime, -- date de valorisation + fk_product integer NOT NULL, -- id du produit concerne par l'operation + qty_ope float(9,3), -- quantité de l'operation + price_ope float(12,4), -- prix unitaire du produit concerne par l'operation + valo_ope float(12,4), -- valorisation de l'operation + price_pmp float(12,4), -- valeur PMP de l'operation + qty_stock float(9,3) DEFAULT 0, -- qunatite en stock + valo_pmp float(12,4), -- valorisation du stock en PMP + fk_stock_mouvement integer, -- id du mouvement de stock + + key(fk_product) +)type=innodb; +