mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix broken merge from 294cda7
This commit is contained in:
parent
294cda7f33
commit
261156588f
@ -231,7 +231,6 @@ class TransactionGroupTwig extends AbstractExtension
|
||||
if ($type === TransactionType::TRANSFER) {
|
||||
$colored = false;
|
||||
}
|
||||
|
||||
$result = app('amount')->formatFlat($journal['foreign_currency_symbol'], (int)$journal['foreign_currency_decimal_places'], $amount, $colored);
|
||||
if ($type === TransactionType::TRANSFER) {
|
||||
$result = sprintf('<span class="text-info">%s</span>', $result);
|
||||
@ -286,12 +285,6 @@ class TransactionGroupTwig extends AbstractExtension
|
||||
$sourceAccountId = $journal['source_account_id'];
|
||||
$amount = $this->signAmount($amount, $type, $destinationType, $sourceAccountId, $account->id);
|
||||
|
||||
// withdrawals are negative
|
||||
if ($type !== TransactionType::WITHDRAWAL) {
|
||||
$amount = bcmul($amount, '-1');
|
||||
}
|
||||
|
||||
|
||||
if ($type === TransactionType::TRANSFER) {
|
||||
$colored = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user