From 4654e811b2d0b2dd66769649208844500a8da57f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 6 Jun 2013 18:54:17 +0200 Subject: [PATCH] Close taks [ task #645 ]. We keep fields, just add comment into tables with explanation of fields. --- htdocs/install/mysql/tables/llx_commandedet.sql | 6 ++++-- htdocs/install/mysql/tables/llx_contratdet.sql | 7 ++++--- htdocs/install/mysql/tables/llx_facturedet.sql | 6 ++++-- htdocs/install/mysql/tables/llx_propaldet.sql | 4 ++-- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/htdocs/install/mysql/tables/llx_commandedet.sql b/htdocs/install/mysql/tables/llx_commandedet.sql index 4ef1f468cdb..6d8d9b282c1 100644 --- a/htdocs/install/mysql/tables/llx_commandedet.sql +++ b/htdocs/install/mysql/tables/llx_commandedet.sql @@ -47,8 +47,10 @@ create table llx_commandedet date_start datetime DEFAULT NULL, -- date debut si service date_end datetime DEFAULT NULL, -- date fin si service info_bits integer DEFAULT 0, -- TVA NPR ou non - buy_price_ht double(24,8) DEFAULT 0, -- prix d'achat HT - fk_product_fournisseur_price integer DEFAULT NULL, -- reference prix fournisseur + + buy_price_ht double(24,8) DEFAULT 0, -- buying price + fk_product_fournisseur_price integer DEFAULT NULL, -- reference of supplier price when line was added (may be used to update buy_price_ht current price when future invoice will be created) + special_code integer UNSIGNED DEFAULT 0, -- code pour les lignes speciales rang integer DEFAULT 0, import_key varchar(14) diff --git a/htdocs/install/mysql/tables/llx_contratdet.sql b/htdocs/install/mysql/tables/llx_contratdet.sql index 5b56e7ec9e9..9424bc4b4b4 100644 --- a/htdocs/install/mysql/tables/llx_contratdet.sql +++ b/htdocs/install/mysql/tables/llx_contratdet.sql @@ -52,9 +52,10 @@ create table llx_contratdet total_localtax1 double(24,8) DEFAULT 0, -- Total Local tax 1 de la ligne total_localtax2 double(24,8) DEFAULT 0, -- Total Local tax 2 de la ligne total_ttc double(24,8) DEFAULT 0, -- Total TTC de la ligne toute quantite et incluant remise ligne et globale - info_bits integer DEFAULT 0, -- TVA NPR ou non - fk_product_fournisseur_price integer DEFAULT NULL, -- supplier price id - buy_price_ht double(24,8) DEFAULT NULL, -- buying price + info_bits integer DEFAULT 0, -- TVA NPR ou non + + buy_price_ht double(24,8) DEFAULT NULL, -- buying price + fk_product_fournisseur_price integer DEFAULT NULL, -- reference of supplier price when line was added was created (may be used to update buy_price_ht when future invoice will be created) fk_user_author integer NOT NULL DEFAULT 0, fk_user_ouverture integer, diff --git a/htdocs/install/mysql/tables/llx_facturedet.sql b/htdocs/install/mysql/tables/llx_facturedet.sql index 77204c29873..6a328d4688e 100644 --- a/htdocs/install/mysql/tables/llx_facturedet.sql +++ b/htdocs/install/mysql/tables/llx_facturedet.sql @@ -48,8 +48,10 @@ create table llx_facturedet date_start datetime DEFAULT NULL, -- date debut si service date_end datetime DEFAULT NULL, -- date fin si service info_bits integer DEFAULT 0, -- TVA NPR ou non - buy_price_ht double(24,8) DEFAULT 0, -- prix d'achat HT - fk_product_fournisseur_price integer DEFAULT NULL, -- reference prix fournisseur + + buy_price_ht double(24,8) DEFAULT 0, -- buying price + fk_product_fournisseur_price integer DEFAULT NULL, -- reference of supplier price when line was added (may be used to update buy_price_ht current price when future invoice will be created) + fk_code_ventilation integer DEFAULT 0 NOT NULL, special_code integer UNSIGNED DEFAULT 0, -- code pour les lignes speciales rang integer DEFAULT 0, -- ordre d'affichage diff --git a/htdocs/install/mysql/tables/llx_propaldet.sql b/htdocs/install/mysql/tables/llx_propaldet.sql index 722f7308b72..624292decd6 100644 --- a/htdocs/install/mysql/tables/llx_propaldet.sql +++ b/htdocs/install/mysql/tables/llx_propaldet.sql @@ -47,8 +47,8 @@ create table llx_propaldet date_end datetime DEFAULT NULL, -- date fin si service info_bits integer DEFAULT 0, -- TVA NPR ou non - buy_price_ht double(24,8) DEFAULT 0, -- prix d'achat HT - fk_product_fournisseur_price integer DEFAULT NULL, -- reference prix fournisseur + buy_price_ht double(24,8) DEFAULT 0, -- buying price + fk_product_fournisseur_price integer DEFAULT NULL, -- reference of supplier price when line was added (may be used to update buy_price_ht current price when future invoice will be created) special_code integer DEFAULT 0, -- code pour les lignes speciales rang integer DEFAULT 0 -- ordre affichage sur la propal