mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-10 23:45:48 -06:00
Fix amount [skip ci]
This commit is contained in:
parent
f20656b516
commit
6aca410f37
@ -47,14 +47,17 @@ class Amount
|
|||||||
$result = $formatter->formatCurrency($float, $format->code);
|
$result = $formatter->formatCurrency($float, $format->code);
|
||||||
|
|
||||||
if ($coloured === true) {
|
if ($coloured === true) {
|
||||||
if ($amount === 0.00) {
|
|
||||||
return '<span style="color:#999">' . $result . '</span>';
|
|
||||||
}
|
|
||||||
if ($amount > 0) {
|
if ($amount > 0) {
|
||||||
return '<span class="text-success" title="' . e($float) . '">' . $result . '</span>';
|
return '<span class="text-success" title="' . e($float) . '">' . $result . '</span>';
|
||||||
|
} else {
|
||||||
|
if ($amount < 0) {
|
||||||
|
return '<span class="text-danger">' . $result . '</span>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return '<span class="text-danger">' . $result . '</span>';
|
return '<span style="color:#999" title="' . e($float) . '">' . $result . '</span>';
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user