From 779a5d6e75928bdf5e3951e7f0d9598a195982af Mon Sep 17 00:00:00 2001 From: jlb Date: Tue, 6 May 2003 16:45:13 +0000 Subject: [PATCH] debut d'integration de la comptabilite banquaire dans la partie adherent --- htdocs/adherents/pre.inc.php | 4 +++- htdocs/compta/bank/pre.inc.php3 | 8 ++++++-- mysql/data/data.sql | 2 ++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/htdocs/adherents/pre.inc.php b/htdocs/adherents/pre.inc.php index 6bfd9111b3f..304f4a69950 100644 --- a/htdocs/adherents/pre.inc.php +++ b/htdocs/adherents/pre.inc.php @@ -46,7 +46,9 @@ function llxHeader($head = "") { $menu->add("/public/adherents/","Espace adherents public"); - $menu->add("cotisations.php","Cotisations"); + $menu->add("index.php","Comptabilite"); + $menu->add_submenu("cotisations.php","Cotisations"); + $menu->add_submenu("/compta/bank/","Bank"); if ($user->admin) { diff --git a/htdocs/compta/bank/pre.inc.php3 b/htdocs/compta/bank/pre.inc.php3 index 8e6e59c75bb..f2a143389f7 100644 --- a/htdocs/compta/bank/pre.inc.php3 +++ b/htdocs/compta/bank/pre.inc.php3 @@ -1,5 +1,6 @@ + * Copyright (C) 2003 Jean-Louis Bergamo * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -67,9 +68,12 @@ function llxHeader($head = "") $menu->add_submenu("config.php3","Config"); - $menu->add("/compta/facture.php3","Factures"); + if (defined("COMPTA_BANK_FACTURES") && COMPTA_BANK_FACTURES) + { + $menu->add("/compta/facture.php3","Factures"); + } - if (COMPTA_ONLINE_PAYMENT_BPLC) + if (defined("COMPTA_ONLINE_PAYMENT_BPLC") && COMPTA_ONLINE_PAYMENT_BPLC) { $menu->add("/compta/bank/bplc.php","Transactions BPLC"); } diff --git a/mysql/data/data.sql b/mysql/data/data.sql index 9832dd69aca..e285a8a831d 100644 --- a/mysql/data/data.sql +++ b/mysql/data/data.sql @@ -44,6 +44,8 @@ insert into llx_const(name, value, type, note) values ('MAIN_SEARCHFORM_CONTACT' insert into llx_const(name, value, type, note) values ('COMPTA_ONLINE_PAYMENT_BPLC','1','yesno','Système de gestion de la banque populaire de Lorraine'); +insert into llx_const(name, value, type, note) values ('COMPTA_BANK_FACTURES','1','yesno','Menu factures dans la partie bank'); + INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_THEME','dolibarr','chaine','theme principal'); INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_TITLE','Dolibarr','chaine','Titre des pages'); INSERT INTO llx_const (name, value, type, note) VALUES ('MAIN_MAIL_RESIL','Votre adhesion sur %SERVEUR% vient d\'etre resilie.\r\nNous esperons vous revoir tres bientot','texte','Mail de Resiliation');