diff --git a/htdocs/compta/charges.php b/htdocs/compta/charges.php index 6699c0b0178..e67b8297ea7 100644 --- a/htdocs/compta/charges.php +++ b/htdocs/compta/charges.php @@ -30,6 +30,7 @@ require("./pre.inc.php"); $langs->load("compta"); +$langs->load("tax"); /* diff --git a/htdocs/compta/sociales/charges.php b/htdocs/compta/sociales/charges.php index 6db9751d144..e313d7816f6 100644 --- a/htdocs/compta/sociales/charges.php +++ b/htdocs/compta/sociales/charges.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2004-2006 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 @@ -17,12 +17,11 @@ * * $Id$ * $Source$ - * */ /** \file htdocs/compta/sociales/charges.php - \ingroup compta + \ingroup tax \brief Fiche d'une charge sociale \version $Revision$ */ @@ -35,7 +34,7 @@ $langs->load("bills"); $user->getrights('compta'); -if (!$user->admin && !$user->rights->compta->charges) +if (!$user->admin && !$user->rights->tax->charges) accessforbidden(); require("../../chargesociales.class.php"); diff --git a/htdocs/compta/sociales/index.php b/htdocs/compta/sociales/index.php index b2e663bb9ea..d361b2e4e78 100644 --- a/htdocs/compta/sociales/index.php +++ b/htdocs/compta/sociales/index.php @@ -22,7 +22,7 @@ /** \file htdocs/compta/sociales/index.php - \ingroup compta + \ingroup tax \brief Ecran des charges sociales \version $Revision$ */ @@ -33,6 +33,7 @@ require(DOL_DOCUMENT_ROOT."/chargesociales.class.php"); $user->getrights('facture'); $user->getrights('compta'); +$user->getrights('tax'); if (!$user->admin && ! $user->rights->tax->charges->lire) accessforbidden(); @@ -114,7 +115,7 @@ print ""; * Forumalaire d'ajout d'une charge * */ -if ($user->rights->compta->charges->creer) { +if ($user->rights->tax->charges->creer) { $var=false; print ""; @@ -261,5 +262,5 @@ print '
'; $db->close(); -llxFooter("Dernière modification $Date$ révision $Revision$"); +llxFooter('$Date$ - $Revision$'); ?> diff --git a/htdocs/compta/sociales/pre.inc.php b/htdocs/compta/sociales/pre.inc.php index 11d444f1877..6e94ce80a86 100644 --- a/htdocs/compta/sociales/pre.inc.php +++ b/htdocs/compta/sociales/pre.inc.php @@ -1,6 +1,6 @@ - * Copyright (C) 2005 Laurent Destailleur + * Copyright (C) 2005-2006 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 @@ -18,8 +18,14 @@ * * $Id$ * $Source$ - * */ + +/** + \file htdocs/compta/sociales/pre.inc.php + \ingroup tax + \brief Fichier gestionnaire du menu charges sociales +*/ + require("../../main.inc.php"); function llxHeader($head = "") @@ -34,7 +40,6 @@ function llxHeader($head = "") $menu->add("../charges/",$langs->trans("Contributions")); $menu->add_submenu("index.php",$langs->trans("SocialContributions")); - // $menu->add_submenu("/compta/sociales/conf.php","Conf"); left_menu($menu->liste); }