Fix undefined hookmanager (#28069)

This commit is contained in:
William Mead 2024-02-08 13:07:53 +01:00 committed by GitHub
parent 94cd823a7c
commit ebe2a42067
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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'));