Mise jour format dans price()

This commit is contained in:
Rodolphe Quiedeville 2004-03-08 16:49:34 +00:00
parent fc1cdfcadd
commit 9b7c903b6b

View File

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