NEW : add hooks on stats pages

This commit is contained in:
Got2be 2020-09-17 17:00:58 +02:00
parent d04d1d1499
commit 03f37f3c1f
4 changed files with 12 additions and 0 deletions

View File

@ -60,6 +60,9 @@ if (GETPOST('subcat', 'alpha') === 'yes') {
$selected_type = GETPOST('search_type', 'int');
if ($selected_type == '') $selected_type = -1;
// Hook
$hookmanager->initHooks(array('cabyprodservlist'));
// Date range
$year = GETPOST("year");
$month = GETPOST("month");

View File

@ -61,6 +61,9 @@ if ($user->socid > 0) $socid = $user->socid;
if (!empty($conf->comptabilite->enabled)) $result = restrictedArea($user, 'compta', '', '', 'resultat');
if (!empty($conf->accounting->enabled)) $result = restrictedArea($user, 'accounting', '', '', 'comptarapport');
// Hook
$hookmanager->initHooks(array('casoclist'));
// Date range
$year = GETPOST("year", 'int');
$month = GETPOST("month", 'int');

View File

@ -57,6 +57,9 @@ if (GETPOST('subcat', 'alpha') === 'yes') {
$selected_type = GETPOST('search_type', 'int');
if ($selected_type == '') $selected_type = -1;
// Hook
$hookmanager->initHooks(array('supplierturnoverbyprodservlist'));
// Date range
$year = GETPOST("year");
$month = GETPOST("month");

View File

@ -50,6 +50,9 @@ if (GETPOST('subcat', 'alpha') === 'yes') {
$subcat = true;
}
// Hook
$hookmanager->initHooks(array('supplierturnoverbythirdpartylist'));
// Security check
if ($user->socid > 0) $socid = $user->socid;
if (!empty($conf->comptabilite->enabled)) $result = restrictedArea($user, 'compta', '', '', 'resultat');