mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Some cleaning up. About to release 3.2.1
This commit is contained in:
@@ -14,14 +14,16 @@ if (!function_exists('mf')) {
|
||||
$amount = round($amount, 2);
|
||||
$string = number_format($amount, 2, ',', '.');
|
||||
|
||||
if ($coloured === true && $amount === 0.0) {
|
||||
return '<span style="color:#999">€ ' . $string . '</span>';
|
||||
}
|
||||
if ($coloured === true && $amount > 0) {
|
||||
return '<span class="text-success">€ ' . $string . '</span>';
|
||||
}
|
||||
if ($coloured === true && $amount < 0) {
|
||||
return '<span class="text-danger">€ ' . $string . '</span>';
|
||||
if ($coloured === true) {
|
||||
if ($amount === 0.0) {
|
||||
return '<span style="color:#999">€ ' . $string . '</span>';
|
||||
}
|
||||
if ($amount > 0) {
|
||||
return '<span class="text-success">€ ' . $string . '</span>';
|
||||
}
|
||||
if ($amount < 0) {
|
||||
return '<span class="text-danger">€ ' . $string . '</span>';
|
||||
}
|
||||
}
|
||||
|
||||
return '€ ' . $string;
|
||||
|
Reference in New Issue
Block a user