diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php index d3c0fe7ca0c..25d76ce5911 100644 --- a/htdocs/projet/element.php +++ b/htdocs/projet/element.php @@ -1410,6 +1410,13 @@ foreach ($listofreferent as $key => $value) { print ''; } + // Additional columns from hooks + $parameters = array('key' => $key, 'value' => $value, 'tablename' => $tablename); + $reshook = $hookmanager->executeHooks('printOverviewDetailTitle', $parameters, $object, $action); // Note that $action and $object may have been modified by hook + if ($reshook < 0) { + setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); + } + print $hookmanager->resPrint; // Amount HT //if (empty($value['disableamount']) && ! in_array($tablename, array('projet_task'))) print ''.$langs->trans("AmountHT").''; @@ -1751,6 +1758,13 @@ foreach ($listofreferent as $key => $value) { print ''; } + // Additional columns from hooks + $parameters = array('key' => $key, 'value' => $value, 'tablename' => $tablename, 'element' => $element, 'i' => $i, 'qualifiedfortotal' => $qualifiedfortotal); + $reshook = $hookmanager->executeHooks('printOverviewDetailValue', $parameters, $object, $action); // Note that $action and $object may have been modified by hook + if ($reshook < 0) { + setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); + } + print $hookmanager->resPrint; // Amount without tax $warning = ''; @@ -1977,6 +1991,13 @@ foreach ($listofreferent as $key => $value) { if ($tablename == 'fichinter') { print ''.convertSecondToTime($total_duration, 'all', $conf->global->MAIN_DURATION_OF_WORKDAY).''; } + // Additional total columns from hooks + $parameters = array('key' => $key, 'value' => $value, 'tablename' => $tablename, 'nbelement' => $i); + $reshook = $hookmanager->executeHooks('printOverviewDetailTotal', $parameters, $object, $action); // Note that $action and $object may have been modified by hook + if ($reshook < 0) { + setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); + } + print $hookmanager->resPrint; print ''; if (empty($value['disableamount'])) { if ($key == 'loan') {