diff --git a/htdocs/compta/tva/index.php b/htdocs/compta/tva/index.php index 6445eb09f0292770215ae8267d15249edcb6f0e7..87c4e682161b67a90e8ed9845ab2881279ee3838 100644 --- a/htdocs/compta/tva/index.php +++ b/htdocs/compta/tva/index.php @@ -160,9 +160,10 @@ for ($m = 1 ; $m < 13 ; $m++ ) $parameters["mode"] = $modetax; $parameters["year"] = $y; $parameters["month"] = $m; + // Initialize technical object to manage hooks of expenses. Note that conf->hooks_modules contains array array $hookmanager->initHooks(array('externalbalance')); - $reshook=$hookmanager->executeHooks('addStatisticLine',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks + $reshook=$hookmanager->executeHooks('addVatLine',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks if (! is_array($coll_listbuy) && $coll_listbuy == -1) {