mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge pull request #20443 from defrance/patch-181
New holliday field for store nb_open_day complex compute
This commit is contained in:
commit
793407a87d
|
|
@ -30,6 +30,8 @@
|
|||
-- -- VPGSQL8.2 SELECT dol_util_rebuild_sequences();
|
||||
|
||||
|
||||
ALTER TABLE llx_holiday ADD COLUMN nb_open_day double(24,8) DEFAULT 0;
|
||||
|
||||
-- Missing in v15 or lower
|
||||
|
||||
ALTER TABLE llx_c_actioncomm MODIFY COLUMN libelle varchar(128);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,8 @@ 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
|
||||
statut integer NOT NULL DEFAULT '1',
|
||||
nb_open_day double(24,8) DEFAULT 0, -- denormalized 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,
|
||||
fk_validator integer NOT NULL, -- who should approve
|
||||
date_valid DATETIME DEFAULT NULL, -- date approval (both date valid and date_approval)
|
||||
fk_user_valid integer DEFAULT NULL, -- user approval (both user valid and user that approved)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user