La fonctionnalit des Contrats de services a t isole

dans un module indpendant ce qui permet de ne pas l'activer
pour ceux qui ne la veulent pas.
This commit is contained in:
Laurent Destailleur 2004-05-01 00:50:27 +00:00
parent 970b15364d
commit 501f962b71
2 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,79 @@
<?PHP
/* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*
*/
include_once "DolibarrModules.class.php";
class modContrat extends DolibarrModules
{
/*
* Initialisation
*
*/
Function modcontrat($DB)
{
$this->db = $DB ;
$this->numero = 54 ;
$this->name = "Contrats de service";
$this->description = "Gestion des contrats de services";
$this->const_name = "MAIN_MODULE_CONTRAT";
$this->const_config = MAIN_MODULE_CONTRAT;
$this->depends = array("modService");
$this->const = array();
$this->boxes = array();
}
/*
*
*
*
*/
Function init()
{
/*
* Permissions
*/
$sql = array(
);
return $this->_init($sql);
}
/*
*
*
*/
Function remove()
{
$sql = array(
);
return $this->_remove($sql);
}
}
?>

View File

@ -1,5 +1,6 @@
<?PHP
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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
@ -40,6 +41,7 @@ class modService extends DolibarrModules
$this->const_config = MAIN_MODULE_SERVICE;
$this->depends = array("modProduit");
$this->requiredby = array("modContrat");
$this->const = array();
$this->boxes = array();