diff --git a/app/Support/Amount.php b/app/Support/Amount.php index 4c6196a793..0ef9c0ad2c 100644 --- a/app/Support/Amount.php +++ b/app/Support/Amount.php @@ -99,21 +99,21 @@ class Amount } else { $symbol = $journal->symbol; } - $amount = $journal->amount_positive; + if ($journal->transactionType->type == 'Transfer' && $coloured) { - $txt = '' . $this->formatWithSymbol($symbol, $amount, false) . ''; + $txt = '' . $this->formatWithSymbol($symbol, $journal->amount_positive, false) . ''; $cache->store($txt); return $txt; } if ($journal->transactionType->type == 'Transfer' && !$coloured) { - $txt = $this->formatWithSymbol($symbol, $amount, false); + $txt = $this->formatWithSymbol($symbol, $journal->amount_positive, false); $cache->store($txt); return $txt; } - $txt = $this->formatWithSymbol($symbol, $amount, $coloured); + $txt = $this->formatWithSymbol($symbol, $journal->amount, $coloured); $cache->store($txt); return $txt;