From 9163fcfccbe19737cf6699ee9441faded6912d47 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 27 Sep 2015 09:47:13 +0200 Subject: [PATCH] Quicker amount thing. --- app/Support/Amount.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Support/Amount.php b/app/Support/Amount.php index 611bdcd101..4c6196a793 100644 --- a/app/Support/Amount.php +++ b/app/Support/Amount.php @@ -99,10 +99,7 @@ class Amount } else { $symbol = $journal->symbol; } - $amount = $journal->amount; - if ($journal->transactionType->type == 'Withdrawal') { - $amount = $amount * -1; - } + $amount = $journal->amount_positive; if ($journal->transactionType->type == 'Transfer' && $coloured) { $txt = '' . $this->formatWithSymbol($symbol, $amount, false) . ''; $cache->store($txt);