Fix legacy code

This commit is contained in:
Laurent Destailleur 2026-01-20 23:35:41 +01:00
parent 38f6c4bce1
commit 106ffcfbd6
2 changed files with 4 additions and 4 deletions

View file

@ -594,8 +594,8 @@ if (empty($reshook)) {
$pu_ht = price2num($price_ht, 'MU');
$pu_ttc = price2num((float) $pu_ht * (1 + ((float) $tmpvat / 100)), 'MU');
} elseif ($tmpvat != $tmpprodvat) {
// On reevalue prix selon taux tva car taux tva transaction peut etre different
// de ceux du produit par default (par example si pays different entre vendeur et acheteur).
// We reevaluate the price according to the var rate because vat of transaction can be different of
// the one of the product by default (for example when country is different between seller and buyer).
if ($price_base_type != 'HT') {
$pu_ht = price2num($pu_ttc / (1 + ((float) $tmpvat / 100)), 'MU');
} else {
@ -1485,7 +1485,7 @@ if ($action == 'create') {
if ($object->frequency > 0) {
print '<br>';
if (empty($conf->cron->enabled)) {
if (!isModEnabled('cron')) {
print info_admin($langs->trans("EnableAndSetupModuleCron", $langs->transnoentitiesnoconv("Module2300Name")));
}

View file

@ -81,7 +81,7 @@ global $langs, $conf, $db;
$langs->loadLangs(array("admin", "cron", "dict"));
// Security check
if (empty($conf->cron->enabled)) {
if (!isModEnabled('cron')) {
httponly_accessforbidden('Module Cron not enabled');
}