New: Les fonctions de saisie/consultation des charges sociales et impots sont mis dans un module à part nommé 'Taxes et charges sociales'. En effet ces fonctions ne sont pas des fonctions de compta pure mais des fonctions de trésoreries. Ceci afin d'avoir une meilleur indépendance du module compta.
This commit is contained in:
parent
d94dc96e22
commit
4c98a91d34
@ -102,12 +102,12 @@ function llxHeader($head = "", $title="", $help_url='')
|
|||||||
$menu->add(DOL_URL_ROOT."/compta/deplacement/", "Déplacement");
|
$menu->add(DOL_URL_ROOT."/compta/deplacement/", "Déplacement");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($conf->compta->enabled || $conf->comptaexpert->enabled) && $conf->compta->tva && $user->societe_id == 0)
|
if ($conf->tax->enabled && $conf->compta->tva && $user->societe_id == 0)
|
||||||
{
|
{
|
||||||
$menu->add(DOL_URL_ROOT."/compta/tva/index.php",$langs->trans("VAT"));
|
$menu->add(DOL_URL_ROOT."/compta/tva/index.php",$langs->trans("VAT"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->compta->enabled || $conf->comptaexpert->enabled)
|
if ($conf->tax->enabled)
|
||||||
{
|
{
|
||||||
$menu->add(DOL_URL_ROOT."/compta/charges/index.php",$langs->trans("Charges"));
|
$menu->add(DOL_URL_ROOT."/compta/charges/index.php",$langs->trans("Charges"));
|
||||||
}
|
}
|
||||||
@ -127,12 +127,18 @@ function llxHeader($head = "", $title="", $help_url='')
|
|||||||
$menu->add(DOL_URL_ROOT."/compta/prelevement/",$langs->trans("StandingOrders"));
|
$menu->add(DOL_URL_ROOT."/compta/prelevement/",$langs->trans("StandingOrders"));
|
||||||
}
|
}
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation"));
|
if ($conf->compta->enabled)
|
||||||
|
|
||||||
if ($user->rights->compta->ventilation->parametrer)
|
|
||||||
{
|
{
|
||||||
$menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param"));
|
if ($user->rights->compta->ventilation->creer)
|
||||||
}
|
{
|
||||||
|
$menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation"));
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($user->rights->compta->ventilation->parametrer)
|
||||||
|
{
|
||||||
|
$menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
left_menu($menu->liste, $help_url);
|
left_menu($menu->liste, $help_url);
|
||||||
|
|||||||
@ -99,12 +99,12 @@ function llxHeader($head = "", $title="", $help_url='')
|
|||||||
$menu->add(DOL_URL_ROOT."/compta/deplacement/", $langs->trans("Trips"));
|
$menu->add(DOL_URL_ROOT."/compta/deplacement/", $langs->trans("Trips"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($conf->compta->enabled || $conf->comptaexpert->enabled) && $conf->compta->tva && $user->societe_id == 0)
|
if ($conf->tax->enabled && $conf->compta->tva && $user->societe_id == 0)
|
||||||
{
|
{
|
||||||
$menu->add(DOL_URL_ROOT."/compta/tva/index.php",$langs->trans("VAT"));
|
$menu->add(DOL_URL_ROOT."/compta/tva/index.php",$langs->trans("VAT"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->compta->enabled || $conf->comptaexpert->enabled)
|
if ($conf->tax->enabled)
|
||||||
{
|
{
|
||||||
$menu->add(DOL_URL_ROOT."/compta/charges/index.php",$langs->trans("Charges"));
|
$menu->add(DOL_URL_ROOT."/compta/charges/index.php",$langs->trans("Charges"));
|
||||||
}
|
}
|
||||||
@ -124,13 +124,18 @@ function llxHeader($head = "", $title="", $help_url='')
|
|||||||
$menu->add(DOL_URL_ROOT."/compta/prelevement/",$langs->trans("StandingOrders"));
|
$menu->add(DOL_URL_ROOT."/compta/prelevement/",$langs->trans("StandingOrders"));
|
||||||
}
|
}
|
||||||
|
|
||||||
$menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation"));
|
if ($conf->compta->enabled)
|
||||||
|
|
||||||
if ($user->rights->compta->ventilation->parametrer)
|
|
||||||
{
|
{
|
||||||
$menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param"));
|
if ($user->rights->compta->ventilation->parametrer)
|
||||||
}
|
{
|
||||||
|
$menu->add(DOL_URL_ROOT."/compta/ventilation/",$langs->trans("Ventilation"));
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($user->rights->compta->ventilation->parametrer)
|
||||||
|
{
|
||||||
|
$menu->add(DOL_URL_ROOT."/compta/param/",$langs->trans("Param"));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
left_menu($menu->liste, $help_url);
|
left_menu($menu->liste, $help_url);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user