Fix: Formulaire ajout charges n'était plus visible
This commit is contained in:
parent
52025a0843
commit
a845739612
@ -30,6 +30,7 @@
|
|||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
$langs->load("compta");
|
$langs->load("compta");
|
||||||
|
$langs->load("tax");
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -17,12 +17,11 @@
|
|||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
* $Source$
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/compta/sociales/charges.php
|
\file htdocs/compta/sociales/charges.php
|
||||||
\ingroup compta
|
\ingroup tax
|
||||||
\brief Fiche d'une charge sociale
|
\brief Fiche d'une charge sociale
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
*/
|
*/
|
||||||
@ -35,7 +34,7 @@ $langs->load("bills");
|
|||||||
|
|
||||||
$user->getrights('compta');
|
$user->getrights('compta');
|
||||||
|
|
||||||
if (!$user->admin && !$user->rights->compta->charges)
|
if (!$user->admin && !$user->rights->tax->charges)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
require("../../chargesociales.class.php");
|
require("../../chargesociales.class.php");
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/compta/sociales/index.php
|
\file htdocs/compta/sociales/index.php
|
||||||
\ingroup compta
|
\ingroup tax
|
||||||
\brief Ecran des charges sociales
|
\brief Ecran des charges sociales
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
*/
|
*/
|
||||||
@ -33,6 +33,7 @@ require(DOL_DOCUMENT_ROOT."/chargesociales.class.php");
|
|||||||
|
|
||||||
$user->getrights('facture');
|
$user->getrights('facture');
|
||||||
$user->getrights('compta');
|
$user->getrights('compta');
|
||||||
|
$user->getrights('tax');
|
||||||
|
|
||||||
if (!$user->admin && ! $user->rights->tax->charges->lire)
|
if (!$user->admin && ! $user->rights->tax->charges->lire)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
@ -114,7 +115,7 @@ print "<table class=\"noborder\" width=\"100%\">";
|
|||||||
* Forumalaire d'ajout d'une charge
|
* Forumalaire d'ajout d'une charge
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
if ($user->rights->compta->charges->creer) {
|
if ($user->rights->tax->charges->creer) {
|
||||||
$var=false;
|
$var=false;
|
||||||
|
|
||||||
print "<tr class=\"liste_titre\">";
|
print "<tr class=\"liste_titre\">";
|
||||||
@ -261,5 +262,5 @@ print '</table>';
|
|||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
llxFooter('$Date$ - $Revision$');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2005-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -18,8 +18,14 @@
|
|||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
* $Source$
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
\file htdocs/compta/sociales/pre.inc.php
|
||||||
|
\ingroup tax
|
||||||
|
\brief Fichier gestionnaire du menu charges sociales
|
||||||
|
*/
|
||||||
|
|
||||||
require("../../main.inc.php");
|
require("../../main.inc.php");
|
||||||
|
|
||||||
function llxHeader($head = "")
|
function llxHeader($head = "")
|
||||||
@ -34,7 +40,6 @@ function llxHeader($head = "")
|
|||||||
|
|
||||||
$menu->add("../charges/",$langs->trans("Contributions"));
|
$menu->add("../charges/",$langs->trans("Contributions"));
|
||||||
$menu->add_submenu("index.php",$langs->trans("SocialContributions"));
|
$menu->add_submenu("index.php",$langs->trans("SocialContributions"));
|
||||||
// $menu->add_submenu("/compta/sociales/conf.php","Conf");
|
|
||||||
|
|
||||||
left_menu($menu->liste);
|
left_menu($menu->liste);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user