From 80f569656406b0cebbdb0048cc8b3204048b63bf Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Thu, 20 Nov 2008 21:28:59 +0000 Subject: [PATCH] Revert option to use predefined invoices --- mysql/data/data.sql | 6 ------ mysql/migration/2.4.0-2.5.0.sql | 5 +++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/mysql/data/data.sql b/mysql/data/data.sql index 20e4c271971..6db688d28d3 100644 --- a/mysql/data/data.sql +++ b/mysql/data/data.sql @@ -115,12 +115,6 @@ insert into llx_const(name,value,type,visible,note) values('SOCIETE_CODECLIENT_A insert into llx_const(name,value,type,visible,note) values('SOCIETE_CODECOMPTA_ADDON','mod_codecompta_panicum','yesno',0,'Module to control third parties codes'); --- --- Facture --- -insert into llx_const(name,value,type,visible,note) values('FACTURE_DISABLE_RECUR','1','yesno',0,'Desactivation facture recurrentes'); - - -- -- Mail Adherent -- diff --git a/mysql/migration/2.4.0-2.5.0.sql b/mysql/migration/2.4.0-2.5.0.sql index 265a3ef2f2a..68b8a25b2a1 100644 --- a/mysql/migration/2.4.0-2.5.0.sql +++ b/mysql/migration/2.4.0-2.5.0.sql @@ -73,3 +73,8 @@ alter table llx_don modify fk_user_valid integer NULL; alter table llx_don add note_public text; alter table llx_don add model_pdf varchar(50); alter table llx_don add import_key varchar(14); + +-- Reverse option +update llx_const set visible = 1, name = 'FACTURE_ENABLE_RECUR', value='1' where name = 'FACTURE_DISABLE_RECUR' and value = '0'; +delete from llx_const where name = 'FACTURE_DISABLE_RECUR' and value = '1'; + -- GitLab