diff --git a/htdocs/compta/paiement/document.php b/htdocs/compta/paiement/document.php index 479bb790e4a..c6904259c93 100644 --- a/htdocs/compta/paiement/document.php +++ b/htdocs/compta/paiement/document.php @@ -52,6 +52,8 @@ if (isModEnabled('project')) { // Load translation files required by the page $langs->loadLangs(array('bills', 'banks', 'companies', 'suppliers', 'other')); +$hookmanager->initHooks(array('paymentdocument', 'globalcard')); + $id = GETPOSTINT('id'); $ref = GETPOST('ref', 'alpha'); $action = GETPOST('action', 'aZ09'); diff --git a/htdocs/fourn/paiement/document.php b/htdocs/fourn/paiement/document.php index 4d6785074f1..779ade183f0 100644 --- a/htdocs/fourn/paiement/document.php +++ b/htdocs/fourn/paiement/document.php @@ -54,6 +54,8 @@ if (isModEnabled('project')) { // Load translation files required by the page $langs->loadLangs(array('banks', 'bills', 'companies', 'suppliers', 'other')); +$hookmanager->initHooks(array('paymentsupplierdocument', 'globalcard')); + // Get Parameters $id = GETPOSTINT('id');