From 47a146fa85470ecfc25696dde083f0ca233392fb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 26 Sep 2024 23:16:08 +0200 Subject: [PATCH] Doc --- htdocs/install/mysql/tables/llx_contrat.sql | 2 +- htdocs/install/mysql/tables/llx_holiday.sql | 6 +++--- htdocs/install/mysql/tables/llx_product.sql | 2 +- htdocs/install/mysql/tables/llx_projet_task.sql | 4 ++-- htdocs/install/mysql/tables/llx_user.sql | 10 +++++----- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/htdocs/install/mysql/tables/llx_contrat.sql b/htdocs/install/mysql/tables/llx_contrat.sql index 8405ff058d4..fad1b90188f 100644 --- a/htdocs/install/mysql/tables/llx_contrat.sql +++ b/htdocs/install/mysql/tables/llx_contrat.sql @@ -49,7 +49,7 @@ create table llx_contrat total_ht double(24,8) DEFAULT 0, -- total without tax total_ttc double(24,8) DEFAULT 0, -- total with tax - denormalized_lower_planned_end_date datetime, + denormalized_lower_planned_end_date datetime, -- DENORMALIZED FIELD to store end date of last subscription signed_status smallint DEFAULT NULL, -- signed status NULL, 0 or 1 online_sign_ip varchar(48), diff --git a/htdocs/install/mysql/tables/llx_holiday.sql b/htdocs/install/mysql/tables/llx_holiday.sql index c6af12d453c..8a2af4515a8 100644 --- a/htdocs/install/mysql/tables/llx_holiday.sql +++ b/htdocs/install/mysql/tables/llx_holiday.sql @@ -16,7 +16,7 @@ -- -- =================================================================== -CREATE TABLE llx_holiday +CREATE TABLE llx_holiday ( rowid integer NOT NULL AUTO_INCREMENT PRIMARY KEY, ref varchar(30) NOT NULL, @@ -31,7 +31,7 @@ description VARCHAR( 255 ) NOT NULL, date_debut DATE NOT NULL, date_fin DATE NOT NULL, halfday integer DEFAULT 0, -- 0=start morning and end afternoon, -1=start afternoon end afternoon, 1=start morning and end morning, 2=start afternoon and end morning -nb_open_day double(24,8) DEFAULT NULL, -- denormalized number of open days of holiday. Not always set. More reliable when re-calculated with num_open_days(date_debut, date_fin, halfday). +nb_open_day double(24,8) DEFAULT NULL, -- DENORMALIZED FIELD. number of open days of holiday. Not always set. More reliable when re-calculated with num_open_days(date_debut, date_fin, halfday). statut integer NOT NULL DEFAULT 1, -- status of leave request fk_validator integer NOT NULL, -- who should approve the leave date_valid DATETIME DEFAULT NULL, -- date validation @@ -48,5 +48,5 @@ note_public text, tms timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, import_key varchar(14), extraparams varchar(255) -- for other parameters with json format -) +) ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_product.sql b/htdocs/install/mysql/tables/llx_product.sql index 2f5793291cb..0120da30b2c 100644 --- a/htdocs/install/mysql/tables/llx_product.sql +++ b/htdocs/install/mysql/tables/llx_product.sql @@ -90,7 +90,7 @@ create table llx_product volume float DEFAULT NULL, volume_units tinyint DEFAULT NULL, stockable_product integer DEFAULT 1 NOT NULL, - stock real, -- Current physical stock (DENORMALIZED FIELD) + stock real, -- DENORMALIZED FIELD. Current physical stock. pmp double(24,8) DEFAULT 0 NOT NULL, -- To store valuation of stock calculated using average price method, for this product fifo double(24,8), -- To store valuation of stock calculated using fifo method, for this product. TODO Not used, should be replaced by stock value stored into movement table. lifo double(24,8), -- To store valuation of stock calculated using lifo method, for this product. TODO Not used, should be replaced by stock value stored into movement table. diff --git a/htdocs/install/mysql/tables/llx_projet_task.sql b/htdocs/install/mysql/tables/llx_projet_task.sql index 0a72c6df839..e87432de88a 100644 --- a/htdocs/install/mysql/tables/llx_projet_task.sql +++ b/htdocs/install/mysql/tables/llx_projet_task.sql @@ -31,7 +31,7 @@ create table llx_projet_task datev datetime, -- date validation label varchar(255) NOT NULL, description text, - duration_effective real DEFAULT 0, -- total of time spent on the task. DENORMALIZED FIELD of total of lines into llx_element_time + duration_effective real DEFAULT 0, -- DENORMALIZED FIELD. total of time spent on the task. total of lines into llx_element_time planned_workload real DEFAULT 0, progress integer DEFAULT 0, -- percentage increase priority integer DEFAULT 0, -- priority @@ -44,6 +44,6 @@ create table llx_projet_task note_public text, rang integer DEFAULT 0, model_pdf varchar(255), - import_key varchar(14), -- Import key, + import_key varchar(14), -- Import key, billable smallint DEFAULT 1 )ENGINE=innodb; diff --git a/htdocs/install/mysql/tables/llx_user.sql b/htdocs/install/mysql/tables/llx_user.sql index afb3dc53c21..06c8ad99a0b 100644 --- a/htdocs/install/mysql/tables/llx_user.sql +++ b/htdocs/install/mysql/tables/llx_user.sql @@ -103,11 +103,11 @@ create table llx_user thm double(24,8), tjm double(24,8), - salary double(24,8), -- denormalized value coming from llx_user_employment - salaryextra double(24,8), -- denormalized value coming from llx_user_employment - dateemployment date, -- denormalized value coming from llx_user_employment - dateemploymentend date, -- denormalized value coming from llx_user_employment - weeklyhours double(16,8), -- denormalized value coming from llx_user_employment + salary double(24,8), -- DENORMALIZED FIELD. Value coming from llx_user_employment + salaryextra double(24,8), -- DENORMALIZED FIELD. Value coming from llx_user_employment + dateemployment date, -- DENORMALIZED FIELD. Value coming from llx_user_employment + dateemploymentend date, -- DENORMALIZED FIELD. Value coming from llx_user_employment + weeklyhours double(16,8), -- DENORMALIZED FIELD. Value coming from llx_user_employment import_key varchar(14), -- import key default_range integer,