From ebe2a42067066f9798bb5e8d4ce93f4e3bd07de6 Mon Sep 17 00:00:00 2001 From: William Mead Date: Thu, 8 Feb 2024 13:07:53 +0100 Subject: [PATCH] Fix undefined hookmanager (#28069) --- htdocs/accountancy/class/accountingaccount.class.php | 1 + 1 file changed, 1 insertion(+) 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'));