diff --git a/htdocs/includes/modules/modContrat.class.php b/htdocs/includes/modules/modContrat.class.php new file mode 100644 index 00000000000..c17c5f1b3a0 --- /dev/null +++ b/htdocs/includes/modules/modContrat.class.php @@ -0,0 +1,79 @@ + + * + * 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); + + } +} +?> diff --git a/htdocs/includes/modules/modService.class.php b/htdocs/includes/modules/modService.class.php index 8f09eaca046..30bd5a7b29a 100644 --- a/htdocs/includes/modules/modService.class.php +++ b/htdocs/includes/modules/modService.class.php @@ -1,5 +1,6 @@ + * Copyright (C) 2004 Laurent Destailleur * * 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();