Skip to content

Commit 56e4d48

Browse files
committed
Restore the accountancy report by project to the menus
1 parent 3c8ea21 commit 56e4d48

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

htdocs/core/menus/standard/eldy.lib.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,6 +1918,7 @@ function get_left_menu_accountancy($mainmenu, &$newmenu, $usemenuhider = 1, $lef
19181918
if ($usemenuhider || empty($leftmenu) || preg_match('/accountancy_report/', $leftmenu)) {
19191919
$newmenu->add("/compta/resultat/index.php?leftmenu=accountancy_report", $langs->trans("MenuReportInOut"), 2, $user->hasRight('accounting', 'comptarapport', 'lire'));
19201920
$newmenu->add("/compta/resultat/clientfourn.php?leftmenu=accountancy_report", $langs->trans("ByPredefinedAccountGroups"), 3, $user->hasRight('accounting', 'comptarapport', 'lire'));
1921+
$newmenu->add("/compta/resultat/projects.php?leftmenu=accountancy_report", $langs->trans("ByProject"), 3, $user->hasRight('accounting', 'comptarapport', 'lire'));
19211922

19221923
if (getDolGlobalInt('MAIN_FEATURES_LEVEL') >= 2) {
19231924
global $mysoc;
@@ -2018,6 +2019,7 @@ function get_left_menu_accountancy($mainmenu, &$newmenu, $usemenuhider = 1, $lef
20182019
if ($usemenuhider || empty($leftmenu) || preg_match('/report/', $leftmenu)) {
20192020
$newmenu->add("/compta/resultat/index.php?leftmenu=report", $langs->trans("MenuReportInOut"), 1, $user->hasRight('compta', 'resultat', 'lire'));
20202021
$newmenu->add("/compta/resultat/clientfourn.php?leftmenu=report", $langs->trans("ByPredefinedAccountGroups"), 2, $user->hasRight('compta', 'resultat', 'lire'));
2022+
$newmenu->add("/compta/resultat/projects.php?leftmenu=accountancy_report", $langs->trans("ByProject"), 2, $user->hasRight('compta', 'resultat', 'lire'));
20212023
/* On verra ca avec module compabilite expert
20222024
$newmenu->add("/compta/resultat/compteres.php?leftmenu=report","Compte de resultat",2,$user->hasRight('compta', 'resultat', 'lire'));
20232025
$newmenu->add("/compta/resultat/bilan.php?leftmenu=report","Bilan",2,$user->hasRight('compta', 'resultat', 'lire'));

htdocs/langs/en_US/accountancy.lang

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ AccountingAccountReportsDesc=You can define here some reports of accounting acco
232232
AccountingAccountGroupsDesc=You can define here some groups of accounting account. They will be used for personalized accounting reports.
233233
ByAccounts=By accounts
234234
ByPredefinedAccountGroups=By predefined groups
235+
ByProject=By project
235236
ByPersonalizedAccountGroups=By personalized groups
236237
Personalized=Personalized
237238
NoReportDefined=No personalized reports defined

0 commit comments

Comments
 (0)