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:
Noé Cendrier 2025-06-16 20:09:00 +02:00 committed by GitHub
parent 0a4013bfc4
commit d1f3f9eddd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {