NEW : add hooks on stats pages
This commit is contained in:
parent
d04d1d1499
commit
03f37f3c1f
@ -60,6 +60,9 @@ if (GETPOST('subcat', 'alpha') === 'yes') {
|
|||||||
$selected_type = GETPOST('search_type', 'int');
|
$selected_type = GETPOST('search_type', 'int');
|
||||||
if ($selected_type == '') $selected_type = -1;
|
if ($selected_type == '') $selected_type = -1;
|
||||||
|
|
||||||
|
// Hook
|
||||||
|
$hookmanager->initHooks(array('cabyprodservlist'));
|
||||||
|
|
||||||
// Date range
|
// Date range
|
||||||
$year = GETPOST("year");
|
$year = GETPOST("year");
|
||||||
$month = GETPOST("month");
|
$month = GETPOST("month");
|
||||||
|
|||||||
@ -61,6 +61,9 @@ if ($user->socid > 0) $socid = $user->socid;
|
|||||||
if (!empty($conf->comptabilite->enabled)) $result = restrictedArea($user, 'compta', '', '', 'resultat');
|
if (!empty($conf->comptabilite->enabled)) $result = restrictedArea($user, 'compta', '', '', 'resultat');
|
||||||
if (!empty($conf->accounting->enabled)) $result = restrictedArea($user, 'accounting', '', '', 'comptarapport');
|
if (!empty($conf->accounting->enabled)) $result = restrictedArea($user, 'accounting', '', '', 'comptarapport');
|
||||||
|
|
||||||
|
// Hook
|
||||||
|
$hookmanager->initHooks(array('casoclist'));
|
||||||
|
|
||||||
// Date range
|
// Date range
|
||||||
$year = GETPOST("year", 'int');
|
$year = GETPOST("year", 'int');
|
||||||
$month = GETPOST("month", 'int');
|
$month = GETPOST("month", 'int');
|
||||||
|
|||||||
@ -57,6 +57,9 @@ if (GETPOST('subcat', 'alpha') === 'yes') {
|
|||||||
$selected_type = GETPOST('search_type', 'int');
|
$selected_type = GETPOST('search_type', 'int');
|
||||||
if ($selected_type == '') $selected_type = -1;
|
if ($selected_type == '') $selected_type = -1;
|
||||||
|
|
||||||
|
// Hook
|
||||||
|
$hookmanager->initHooks(array('supplierturnoverbyprodservlist'));
|
||||||
|
|
||||||
// Date range
|
// Date range
|
||||||
$year = GETPOST("year");
|
$year = GETPOST("year");
|
||||||
$month = GETPOST("month");
|
$month = GETPOST("month");
|
||||||
|
|||||||
@ -50,6 +50,9 @@ if (GETPOST('subcat', 'alpha') === 'yes') {
|
|||||||
$subcat = true;
|
$subcat = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Hook
|
||||||
|
$hookmanager->initHooks(array('supplierturnoverbythirdpartylist'));
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
if ($user->socid > 0) $socid = $user->socid;
|
if ($user->socid > 0) $socid = $user->socid;
|
||||||
if (!empty($conf->comptabilite->enabled)) $result = restrictedArea($user, 'compta', '', '', 'resultat');
|
if (!empty($conf->comptabilite->enabled)) $result = restrictedArea($user, 'compta', '', '', 'resultat');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user