Mise à jour format dans price()
This commit is contained in:
parent
fc1cdfcadd
commit
9b7c903b6b
@ -806,11 +806,16 @@ function print_duree_select($prefix)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Return an amount with format "9 999.99"
|
* Return an amount with format "9 999.99"
|
||||||
|
* Fonction utilisée dans les pdf et les pages
|
||||||
|
* html
|
||||||
*/
|
*/
|
||||||
function price($amount)
|
function price($amount)
|
||||||
{
|
{
|
||||||
$dec='.'; $thousand=' ';
|
return number_format($amount, 2, '.', ' ');
|
||||||
return ereg_replace(' ',' ',number_format($amount, 2, $dec, $thousand));
|
/* TODO implémenter cela plus tard
|
||||||
|
*$dec='.'; $thousand=' ';
|
||||||
|
*return ereg_replace(' ',' ',number_format($amount, 2, $dec, $thousand));
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
function francs($euros)
|
function francs($euros)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user