Skip to content

Firefly III: a personal finances manager

Fix amount [skip ci]

James Cole6aca410f3703
diff --git a/app/Support/Amount.php b/app/Support/Amount.php
index 4f0b894047..a0d4b3159b 100644
--- a/app/Support/Amount.php
+++ b/app/Support/Amount.php
@@ -47,14 +47,17 @@ class Amount
$result = $formatter->formatCurrency($float, $format->code);
if ($coloured === true) {
- if ($amount === 0.00) {
- return '<span style="color:#999">' . $result . '</span>';
- }
+
if ($amount > 0) {
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>';
+
}