mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-23 04:18:50 +00:00
Lots of stuff for budgets, accounts and others!
This commit is contained in:
@@ -9,16 +9,16 @@ if (!function_exists('mf')) {
|
||||
$string = number_format($n, 2, ',', '.');
|
||||
|
||||
if ($coloured === true && $n === 0.0) {
|
||||
return '<span style="color:#999">€ ' . $string . '</span>';
|
||||
return '<span style="color:#999">€ ' . $string . '</span>';
|
||||
}
|
||||
if ($coloured === true && $n > 0) {
|
||||
return '<span class="text-success">€ ' . $string . '</span>';
|
||||
return '<span class="text-success">€ ' . $string . '</span>';
|
||||
}
|
||||
if ($coloured === true && $n < 0) {
|
||||
return '<span class="text-danger">€ ' . $string . '</span>';
|
||||
return '<span class="text-danger">€ ' . $string . '</span>';
|
||||
}
|
||||
|
||||
return '€ ' . $string;
|
||||
return '€ ' . $string;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user