diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 6e20f5452cf..3037b4a2325 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -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) {