FIX: PHP 8 Error 500 (#34545)
* FIX: PHP 8 Error 500 * Update product.class.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
0a4013bfc4
commit
d1f3f9eddd
1 changed files with 1 additions and 1 deletions
|
|
@ -2375,7 +2375,7 @@ class Product extends CommonObject
|
|||
}
|
||||
} else {
|
||||
$price = (float) price2num($newprice, 'MU');
|
||||
$price_ttc = ($newnpr != 1) ? price2num($newprice) * (1 + ($newvat / 100)) : $price;
|
||||
$price_ttc = ($newnpr != 1) ? (float) price2num($newprice) * (1 + ($newvat / 100)) : $price;
|
||||
$price_ttc = (float) price2num($price_ttc, 'MU');
|
||||
|
||||
if ($newminprice !== '' || $newminprice === 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue