mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Code optimalisations.
This commit is contained in:
@@ -104,7 +104,9 @@ class TransactionJournal extends Twig_Extension
|
||||
if (TransactionType::WITHDRAWAL === $type) {
|
||||
$total['amount'] = bcmul($total['amount'], '-1');
|
||||
}
|
||||
$array[] = app('amount')->formatAnything($total['currency'], $total['amount']);
|
||||
if (null !== $total['currency']) {
|
||||
$array[] = app('amount')->formatAnything($total['currency'], $total['amount']);
|
||||
}
|
||||
}
|
||||
|
||||
return implode(' / ', $array);
|
||||
|
Reference in New Issue
Block a user