diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php
index c513123c9bf..975b8fcdbed 100644
--- a/htdocs/projet/element.php
+++ b/htdocs/projet/element.php
@@ -652,9 +652,29 @@ print '
'.$langs->trans("AmountTTC").' | ';
print '';
$total_revenue_ht = 0;
+$balance_ht = 0;
+$balance_ttc = 0;
foreach ($listofreferent as $key => $value)
{
+ $parameters = array(
+ 'total_revenue_ht' =>& $total_revenue_ht,
+ 'balance_ht' =>& $balance_ht,
+ 'balance_ttc' =>& $balance_ttc,
+ 'key' => $key,
+ 'value' =>& $value,
+ 'dates' => $dates,
+ 'datee' => $datee
+ );
+ $reshook = $hookmanager->executeHooks('printOverviewProfit', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
+ if ($reshook < 0) {
+ setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
+ }
+ elseif ($reshook > 0){
+ print $hookmanager->resPrint;
+ continue;
+ }
+
$name = $langs->trans($value['name']);
$title = $value['title'];
$classname = $value['class'];
@@ -849,6 +869,22 @@ print '
';
// Detail
foreach ($listofreferent as $key => $value)
{
+
+ $parameters = array(
+ 'key' => $key,
+ 'value' =>& $value,
+ 'dates' => $dates,
+ 'datee' => $datee
+ );
+ $reshook = $hookmanager->executeHooks('printOverviewDetail', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
+ if ($reshook < 0) {
+ setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
+ }
+ elseif ($reshook > 0){
+ print $hookmanager->resPrint;
+ continue;
+ }
+
$title = $value['title'];
$classname = $value['class'];
$tablename = $value['table'];