From 6aca410f3703d1209049513d4e8039f5c7354713 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 21 Mar 2016 19:28:22 +0100 Subject: [PATCH] Fix amount [skip ci] --- app/Support/Amount.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 '' . $result . ''; - } + if ($amount > 0) { return '' . $result . ''; + } else { + if ($amount < 0) { + return '' . $result . ''; + } } - return '' . $result . ''; + return '' . $result . ''; + }