Merge pull request #14768 from atm-gauthier/develop_new_hooks_in_stats_pages

NEW : add hooks on stats pages
This commit is contained in:
Laurent Destailleur 2020-09-20 17:17:44 +02:00 committed by GitHub
commit 40d894a610
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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');