add hook product stat
This commit is contained in:
parent
34c31492cf
commit
a386cf5e89
@ -58,6 +58,9 @@ $fieldvalue = (!empty($id) ? $id : $ref);
|
|||||||
$fieldtype = (!empty($ref) ? 'ref' : 'rowid');
|
$fieldtype = (!empty($ref) ? 'ref' : 'rowid');
|
||||||
$result = restrictedArea($user, 'produit|service', $fieldvalue, 'product&product', '', '', $fieldtype);
|
$result = restrictedArea($user, 'produit|service', $fieldvalue, 'product&product', '', '', $fieldtype);
|
||||||
|
|
||||||
|
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
||||||
|
$hookmanager->initHooks(array('productstatscard', 'globalcard'));
|
||||||
|
|
||||||
$tmp = dol_getdate(dol_now());
|
$tmp = dol_getdate(dol_now());
|
||||||
$currentyear = $tmp['year'];
|
$currentyear = $tmp['year'];
|
||||||
if (empty($search_year)) $search_year = $currentyear;
|
if (empty($search_year)) $search_year = $currentyear;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user