diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 1aa72da3ade..16bd4d52ceb 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -806,11 +806,16 @@ function print_duree_select($prefix) /* * Return an amount with format "9 999.99" + * Fonction utilisée dans les pdf et les pages + * html */ function price($amount) { - $dec='.'; $thousand=' '; - return ereg_replace(' ',' ',number_format($amount, 2, $dec, $thousand)); + return number_format($amount, 2, '.', ' '); + /* TODO implémenter cela plus tard + *$dec='.'; $thousand=' '; + *return ereg_replace(' ',' ',number_format($amount, 2, $dec, $thousand)); + */ } function francs($euros)