This commit is contained in:
Laurent Destailleur
2025-11-18 16:59:24 +01:00
parent 5aaf9cd565
commit ac2fe3e991
2 changed files with 2 additions and 2 deletions

View File

@@ -8488,7 +8488,7 @@ function get_default_tva(Societe $thirdparty_seller, Societe $thirdparty_buyer,
// Allow an external module to bypass the calculation of prices
$parameters = array('vatvalue' => $vatvalue, 'vatrule' => $vatrule);
$tmpobject = null; $tmpaction = null;
$reshook = $hookmanager->executeHooks('get_default_tva', $parameters, $tmpobject, $tmpaction); // See description below
$reshook = $hookmanager->executeHooks('get_default_tva', $parameters, $tmpobject, $tmpaction);
if ($reshook > 0 && !empty($hookmanager->resArray['vatvalue'])) {
$vatvalue = $hookmanager->resArray['vatvalue'];
$vatrule = $hookmanager->resArray['vatrule']; // For information

View File

@@ -459,7 +459,7 @@ function calcul_price_total($qty, $pu, $remise_percent_ligne, $txtva, $uselocalt
// Allow an external module to bypass the calculation of prices
$parameters = array('result' => $result);
$tmpobject = null; $tmpaction = null;
$reshook = $hookmanager->executeHooks('calcul_price_total', $parameters, $tmpobject, $tmpaction); // See description below
$reshook = $hookmanager->executeHooks('calcul_price_total', $parameters, $tmpobject, $tmpaction);
if ($reshook > 0 && !empty($hookmanager->resArray['result'])) {
return $hookmanager->resArray['result'];
}