From b96275e269fc90e4fe9944cf2667fff32e59a472 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 16 Feb 2004 21:03:18 +0000 Subject: [PATCH] =?UTF-8?q?L'initialisation=20du=20param=E8tre=20du=20choi?= =?UTF-8?q?x=20du=20mode=20de=20compta=20=E9tait=20mal=20fait.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/main.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index f58f986af85..c0279461b81 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -238,8 +238,10 @@ else { /* * Defini le mode de calcul du CA */ -$conf->compta->mode = 'RECETTES-DEPENSES'; // Mettre 'CREANCES-DETTES' pour un CA en creances-dettes - +$conf->compta->mode = 'RECETTES-DEPENSES'; // Par défaut +if (defined("COMPTA_MODE")) { + $conf->compta->mode = COMPTA_MODE; // Peut etre 'CREANCES-DETTES' pour un CA en creances-dettes +} /* * SIZE_LISTE_LIMIT : constante de taille maximale des listes */