From 7e2d1de19ff1e4cfab966446f867fe4bcb6839d4 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 3 Sep 2007 15:25:57 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20uniformisation=20des=20champs=20entre=20?= =?UTF-8?q?la=20cr=E9ation=20et=20l'update=20!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/tables/llx_commande_fournisseurdet.sql | 20 +++++------ mysql/tables/llx_contratdet.sql | 34 +++++++++---------- mysql/tables/llx_product.sql | 20 +++++------ .../tables/llx_product_fournisseur_price.sql | 6 ++-- .../llx_product_fournisseur_price_log.sql | 4 +-- 5 files changed, 42 insertions(+), 42 deletions(-) diff --git a/mysql/tables/llx_commande_fournisseurdet.sql b/mysql/tables/llx_commande_fournisseurdet.sql index ae5ec48af21..41a04a81d06 100644 --- a/mysql/tables/llx_commande_fournisseurdet.sql +++ b/mysql/tables/llx_commande_fournisseurdet.sql @@ -28,14 +28,14 @@ create table llx_commande_fournisseurdet ref varchar(50), label varchar(255), description text, - tva_tx double(6,3), -- taux tva - qty real, -- quantité - remise_percent real DEFAULT 0, -- pourcentage de remise - remise real DEFAULT 0, -- montant de la remise - price real, -- prix final - subprice double(16,8), -- prix unitaire - total_ht double(16,8), -- Total HT de la ligne toute quantité et incluant remise ligne et globale - total_tva double(16,8), -- Total TVA de la ligne toute quantité et incluant remise ligne et globale - total_ttc double(16,8), -- Total TTC de la ligne toute quantité et incluant remise ligne et globale - info_bits integer DEFAULT 0 -- TVA NPR ou non + tva_tx double(6,3) DEFAULT 0, -- taux tva + qty real, -- quantité + remise_percent real DEFAULT 0, -- pourcentage de remise + remise real DEFAULT 0, -- montant de la remise + price real, -- prix final + subprice double(16,8) DEFAULT 0, -- prix unitaire + total_ht double(16,8) DEFAULT 0, -- Total HT de la ligne toute quantité et incluant remise ligne et globale + total_tva double(16,8) DEFAULT 0, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale + total_ttc double(16,8) DEFAULT 0, -- Total TTC de la ligne toute quantité et incluant remise ligne et globale + info_bits integer DEFAULT 0 -- TVA NPR ou non )type=innodb; diff --git a/mysql/tables/llx_contratdet.sql b/mysql/tables/llx_contratdet.sql index e00112c3f23..1d92595086f 100644 --- a/mysql/tables/llx_contratdet.sql +++ b/mysql/tables/llx_contratdet.sql @@ -25,33 +25,33 @@ create table llx_contratdet rowid integer AUTO_INCREMENT PRIMARY KEY, tms timestamp, - fk_contrat integer NOT NULL, - fk_product integer NULL, -- doit pouvoir etre nul pour ligne detail sans produits + fk_contrat integer NOT NULL, + fk_product integer NULL, -- doit pouvoir etre nul pour ligne detail sans produits - statut smallint DEFAULT 0, + statut smallint DEFAULT 0, - label text, -- libellé du produit + label text, -- libellé du produit description text, - fk_remise_except integer NULL, -- Lien vers table des remises fixes + fk_remise_except integer NULL, -- Lien vers table des remises fixes date_commande datetime, date_ouverture_prevue datetime, - date_ouverture datetime, -- date d'ouverture du service chez le client + date_ouverture datetime, -- date d'ouverture du service chez le client date_fin_validite datetime, date_cloture datetime, - tva_tx double(6,3) DEFAULT 0 NOT NULL, -- taux tva - qty real NOT NULL, -- quantité - remise_percent real DEFAULT 0, -- pourcentage de remise - subprice double(16,8), -- prix unitaire - price_ht real, -- prix final (obsolete) - remise real DEFAULT 0, -- montant de la remise (obsolete) - total_ht double(16,8) NOT NULL, -- Total HT de la ligne toute quantité et incluant remise ligne et globale - total_tva double(16,8) NOT NULL, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale - total_ttc double(16,8) NOT NULL, -- Total TTC de la ligne toute quantité et incluant remise ligne et globale - info_bits integer DEFAULT 0, -- TVA NPR ou non + tva_tx double(6,3) DEFAULT 0, -- taux tva + qty real NOT NULL, -- quantité + remise_percent real DEFAULT 0, -- pourcentage de remise + subprice double(16,8) DEFAULT 0, -- prix unitaire + price_ht real, -- prix final (obsolete) + remise real DEFAULT 0, -- montant de la remise (obsolete) + total_ht double(16,8) DEFAULT 0, -- Total HT de la ligne toute quantité et incluant remise ligne et globale + total_tva double(16,8) DEFAULT 0, -- Total TVA de la ligne toute quantité et incluant remise ligne et globale + total_ttc double(16,8) DEFAULT 0, -- Total TTC de la ligne toute quantité et incluant remise ligne et globale + info_bits integer DEFAULT 0, -- TVA NPR ou non - fk_user_author integer NOT NULL default 0, + fk_user_author integer NOT NULL DEFAULT 0, fk_user_ouverture integer, fk_user_cloture integer, commentaire text diff --git a/mysql/tables/llx_product.sql b/mysql/tables/llx_product.sql index 4bbbf0c4f7b..003e7da1c08 100644 --- a/mysql/tables/llx_product.sql +++ b/mysql/tables/llx_product.sql @@ -25,23 +25,23 @@ create table llx_product rowid integer AUTO_INCREMENT PRIMARY KEY, datec datetime, tms timestamp, - ref varchar(32) NOT NULL, + ref varchar(32) NOT NULL, label varchar(255) NOT NULL, description text, note text, - price double(16,8), + price double(16,8) DEFAULT 0, price_ttc double(16,8) DEFAULT 0, - price_base_type varchar(3) DEFAULT 'HT', + price_base_type varchar(3) DEFAULT 'HT', tva_tx double(6,3), fk_user_author integer, - envente tinyint DEFAULT 1, - nbvente integer DEFAULT 0, - fk_product_type integer DEFAULT 0, + envente tinyint DEFAULT 1, + nbvente integer DEFAULT 0, + fk_product_type integer DEFAULT 0, duration varchar(6), - stock_propale integer DEFAULT 0, - stock_commande integer DEFAULT 0, - seuil_stock_alerte integer DEFAULT 0, - stock_loc varchar(10), -- emplacement dans le stock + stock_propale integer DEFAULT 0, + stock_commande integer DEFAULT 0, + seuil_stock_alerte integer DEFAULT 0, + stock_loc varchar(10), -- emplacement dans le stock gencode varchar(255) DEFAULT NULL, weight float DEFAULT NULL, weight_units tinyint DEFAULT NULL, diff --git a/mysql/tables/llx_product_fournisseur_price.sql b/mysql/tables/llx_product_fournisseur_price.sql index e25d8987c8a..c25a828fdaf 100644 --- a/mysql/tables/llx_product_fournisseur_price.sql +++ b/mysql/tables/llx_product_fournisseur_price.sql @@ -26,11 +26,11 @@ create table llx_product_fournisseur_price datec datetime, tms timestamp, fk_product integer, - fk_soc integer, -- lien sur llx_societe + fk_soc integer, -- lien sur llx_societe ref_fourn varchar(30), - price double(16,8), + price double(16,8) DEFAULT 0, quantity double, - unitprice double(16,8), + unitprice double(16,8) DEFAULT 0, fk_user integer )type=innodb; diff --git a/mysql/tables/llx_product_fournisseur_price_log.sql b/mysql/tables/llx_product_fournisseur_price_log.sql index 172bed5c4d3..ecfca7ca1ed 100644 --- a/mysql/tables/llx_product_fournisseur_price_log.sql +++ b/mysql/tables/llx_product_fournisseur_price_log.sql @@ -25,8 +25,8 @@ create table llx_product_fournisseur_price_log rowid integer AUTO_INCREMENT PRIMARY KEY, datec datetime, fk_product integer, - fk_soc integer, -- lien sur llx_societe - price double(16,8), + fk_soc integer, -- lien sur llx_societe + price double(16,8) DEFAULT 0, quantity double, fk_user integer