Add ordersupplierdispatch hook
This commit is contained in:
parent
1870598734
commit
6d552a2ae6
@ -62,6 +62,8 @@ if (empty($conf->stock->enabled)) {
|
|||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$hookmanager->initHooks(array('ordersupplierdispatch'));
|
||||||
|
|
||||||
// Recuperation de l'id de projet
|
// Recuperation de l'id de projet
|
||||||
$projectid = 0;
|
$projectid = 0;
|
||||||
if ($_GET["projectid"])
|
if ($_GET["projectid"])
|
||||||
@ -85,6 +87,10 @@ if ($id > 0 || ! empty($ref)) {
|
|||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$parameters=array();
|
||||||
|
$reshook=$hookmanager->executeHooks('doActions',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks
|
||||||
|
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
|
||||||
|
|
||||||
if ($action == 'checkdispatchline' && ! ((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande->receptionner)) || (! empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande_advance->check))))
|
if ($action == 'checkdispatchline' && ! ((empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande->receptionner)) || (! empty($conf->global->MAIN_USE_ADVANCED_PERMS) && empty($user->rights->fournisseur->commande_advance->check))))
|
||||||
{
|
{
|
||||||
$error=0;
|
$error=0;
|
||||||
@ -430,6 +436,9 @@ if ($id > 0 || ! empty($ref)) {
|
|||||||
print '<td>' . $author->getNomUrl(1, '', 0, 0, 0) . '</td>';
|
print '<td>' . $author->getNomUrl(1, '', 0, 0, 0) . '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
$parameters=array();
|
||||||
|
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user