diff --git a/htdocs/compta/resultat/clientfourn.php b/htdocs/compta/resultat/clientfourn.php index 4286c6a8453c0c3b43e5112eff406ecc4c0c46b4..6a31fc02b4cae47f55485f6f515c123540db79fb 100644 --- a/htdocs/compta/resultat/clientfourn.php +++ b/htdocs/compta/resultat/clientfourn.php @@ -978,7 +978,7 @@ $parameters["date_end"] = $date_end; $parameters["bc"] = $bc; // 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('addBalanceLine',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks print $hookmanager->resPrint; if ($mysoc->tva_assuj != 'franchise') // Assujeti diff --git a/htdocs/compta/resultat/index.php b/htdocs/compta/resultat/index.php index 9036ce32ed088d7a9365d7224081e1e000c476a7..a98ce53ae8105f1ea1d9dc9b1e8beec3f2d63195 100644 --- a/htdocs/compta/resultat/index.php +++ b/htdocs/compta/resultat/index.php @@ -472,7 +472,7 @@ $object = array(&$encaiss, &$encaiss_ttc, &$decaiss, &$decaiss_ttc); $parameters["mode"] = $modecompta; // 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('addReportInfo',$parameters,$object,$action); // Note that $action and $object may have been modified by some hooks /* * Salaries diff --git a/htdocs/compta/tva/quadri_detail.php b/htdocs/compta/tva/quadri_detail.php index e04530a9dc70853596157ab041a6e09a0c92ea3d..28ce4e50e244f82680e85db3b9e2a5046f2d8468 100644 --- a/htdocs/compta/tva/quadri_detail.php +++ b/htdocs/compta/tva/quadri_detail.php @@ -325,10 +325,12 @@ else $parameters["mode"] = $modetax; $parameters["start"] = $date_start; $parameters["end"] = $date_end; + $parameters["type"] = 'vat'; + $object = array(&$x_coll, &$x_paye, &$x_both); // 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 foreach(array_keys($x_coll) as $rate) { diff --git a/htdocs/compta/tva/quarter_report.php b/htdocs/compta/tva/quarter_report.php index 61d019894e8610d61b20e45f62bf8fc96a102c56..626a0fd6c34b7b01fa725845e96d0be1cf1876ec 100644 --- a/htdocs/compta/tva/quarter_report.php +++ b/htdocs/compta/tva/quarter_report.php @@ -378,10 +378,12 @@ if (!is_array($x_coll) || !is_array($x_paye)) { $parameters["mode"] = $modetax; $parameters["start"] = $date_start; $parameters["end"] = $date_end; + $parameters["type"] = 'vat'; + $object = array(&$x_coll, &$x_paye, &$x_both); // 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 foreach (array_keys($x_coll) as $rate) { $subtot_coll_total_ht = 0;