mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Some fixes for amounts.
This commit is contained in:
@@ -99,21 +99,21 @@ class Amount
|
|||||||
} else {
|
} else {
|
||||||
$symbol = $journal->symbol;
|
$symbol = $journal->symbol;
|
||||||
}
|
}
|
||||||
$amount = $journal->amount_positive;
|
|
||||||
if ($journal->transactionType->type == 'Transfer' && $coloured) {
|
if ($journal->transactionType->type == 'Transfer' && $coloured) {
|
||||||
$txt = '<span class="text-info">' . $this->formatWithSymbol($symbol, $amount, false) . '</span>';
|
$txt = '<span class="text-info">' . $this->formatWithSymbol($symbol, $journal->amount_positive, false) . '</span>';
|
||||||
$cache->store($txt);
|
$cache->store($txt);
|
||||||
|
|
||||||
return $txt;
|
return $txt;
|
||||||
}
|
}
|
||||||
if ($journal->transactionType->type == 'Transfer' && !$coloured) {
|
if ($journal->transactionType->type == 'Transfer' && !$coloured) {
|
||||||
$txt = $this->formatWithSymbol($symbol, $amount, false);
|
$txt = $this->formatWithSymbol($symbol, $journal->amount_positive, false);
|
||||||
$cache->store($txt);
|
$cache->store($txt);
|
||||||
|
|
||||||
return $txt;
|
return $txt;
|
||||||
}
|
}
|
||||||
|
|
||||||
$txt = $this->formatWithSymbol($symbol, $amount, $coloured);
|
$txt = $this->formatWithSymbol($symbol, $journal->amount, $coloured);
|
||||||
$cache->store($txt);
|
$cache->store($txt);
|
||||||
|
|
||||||
return $txt;
|
return $txt;
|
||||||
|
Reference in New Issue
Block a user