This commit is contained in:
Laurent Destailleur
2025-11-19 12:15:48 +01:00
parent 5ccab94697
commit 77e66216dc
2 changed files with 4 additions and 4 deletions

View File

@@ -8488,8 +8488,8 @@ 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 = '';
// @phan-suppress PhanPluginConstantVariableNull
$reshook = $hookmanager->executeHooks('get_default_tva', $parameters, $tmpobject, $tmpaction);
// @phan-suppress-next-line PhanPluginConstantVariableNull
$reshook = $hookmanager->executeHooks('get_default_tva', $parameters, $tmpobject, $tmpaction); // @phan-suppress-current-line PhanPluginConstantVariableNull
if ($reshook > 0 && !empty($hookmanager->resArray['vatvalue'])) {
$vatvalue = $hookmanager->resArray['vatvalue'];
$vatrule = $hookmanager->resArray['vatrule']; // For information