From f13de21abdc5fc1016f90e79eebee5ca7a6b92fc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 2 Apr 2006 19:07:16 +0000 Subject: [PATCH] =?UTF-8?q?New:=20Ajout=20champ=20info=5Fbits=20pour=20sto?= =?UTF-8?q?cker=20divers=20propri=E9t=E9s=20sur=20une=20ligne=20d=E9tail?= =?UTF-8?q?=20de=20facture:=20bit=20tva=20non=20per=E7ue=20r=E9cup=E9rable?= =?UTF-8?q?,=20bit=20ligne=20de=20remise,=20etc...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/data/data_dev.sql | 16 ++++++++-------- mysql/migration/2.0.0-2.1.0.sql | 3 +++ mysql/tables/llx_facturedet.sql | 1 + 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/mysql/data/data_dev.sql b/mysql/data/data_dev.sql index be906d7d0d7..e4e7bb92dd6 100644 --- a/mysql/data/data_dev.sql +++ b/mysql/data/data_dev.sql @@ -438,21 +438,21 @@ values (1, 'FI-LP-1','2001-12-05','2001-12-05','2001-12-05',1,1,1,4,'Mise -- insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact) -values ('2002-04-06',1,1,1,1,1); +values ('2002-04-06',1,1,1,1,10); insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact) -values ('2002-04-05',2,1,1,1,1); +values ('2002-04-05',2,1,1,1,12); insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact) -values ('2002-04-05',1,1,1,2,1); +values ('2002-04-05',1,1,1,2,10); insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact) -values ('2002-04-02',3,1,1,1,1); +values ('2002-04-02',3,1,1,1,13); insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact) -values ('2002-04-02',3,1,1,1,1); +values ('2002-04-02',3,1,1,1,13); insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact) -values ('2002-03-05',3,1,1,1,1); +values ('2002-03-05',3,1,1,1,13); insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact) -values ('2002-03-04',1,1,1,1,1); +values ('2002-03-04',1,1,1,1,11); insert into llx_actioncomm (datea, fk_action,fk_soc,fk_user_author,fk_user_action,fk_contact) -values ('2001-03-05',1,1,1,1,1); +values ('2001-03-05',1,1,1,1,11); -- -- -- diff --git a/mysql/migration/2.0.0-2.1.0.sql b/mysql/migration/2.0.0-2.1.0.sql index 9c4e95185ca..ee231f0a057 100644 --- a/mysql/migration/2.0.0-2.1.0.sql +++ b/mysql/migration/2.0.0-2.1.0.sql @@ -90,6 +90,9 @@ ALTER TABLE llx_facture_fourn_det ADD INDEX idx_facture_fourn_det_fk_facture (fk ALTER TABLE llx_facture_fourn_det ADD CONSTRAINT fk_facture_fourn_det_fk_facture FOREIGN KEY (fk_facture_fourn) REFERENCES llx_facture_fourn (rowid); +ALTER TABLE llx_facturedet ADD COLUMN info_bits integer DEFAULT 0 after date_end; + + ALTER TABLE llx_commande ADD INDEX idx_commande_fk_soc (fk_soc); ALTER TABLE llx_commande ADD CONSTRAINT fk_commande_societe FOREIGN KEY (fk_soc) REFERENCES llx_societe (idp); diff --git a/mysql/tables/llx_facturedet.sql b/mysql/tables/llx_facturedet.sql index f22c914fc5b..8289710e752 100644 --- a/mysql/tables/llx_facturedet.sql +++ b/mysql/tables/llx_facturedet.sql @@ -34,6 +34,7 @@ create table llx_facturedet price real, -- prix final date_start datetime, -- date debut si service date_end datetime, -- date fin si service + info_bits integer DEFAULT 0, fk_code_ventilation integer DEFAULT 0 NOT NULL, fk_export_compta integer DEFAULT 0 NOT NULL, rang integer DEFAULT 0