diff --git a/htdocs/accountancy/class/accountingaccount.class.php b/htdocs/accountancy/class/accountingaccount.class.php index 8e407cbd182..de202b575e5 100644 --- a/htdocs/accountancy/class/accountingaccount.class.php +++ b/htdocs/accountancy/class/accountingaccount.class.php @@ -740,6 +740,7 @@ class AccountingAccount extends CommonObject */ public function getAccountingCodeToBind(Societe $buyer, Societe $seller, Product $product, $facture, $factureDet, $accountingAccount = array(), $type = '') { + global $hookmanager; // Instantiate hooks for external modules $hookmanager->initHooks(array('accountancyBindingCalculation'));