mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Refer to correct field name.
This commit is contained in:
@@ -104,7 +104,7 @@ class Transaction extends Twig_Extension
|
||||
// first display amount:
|
||||
$amount = (string)$transaction['amount'];
|
||||
$fakeCurrency = new TransactionCurrency;
|
||||
$fakeCurrency->decimal_places = $transaction['currency_dp'];
|
||||
$fakeCurrency->decimal_places = $transaction['currency_decimal_places'];
|
||||
$fakeCurrency->symbol = $transaction['currency_symbol'];
|
||||
$string = app('amount')->formatAnything($fakeCurrency, $amount, true);
|
||||
|
||||
@@ -112,7 +112,7 @@ class Transaction extends Twig_Extension
|
||||
if (null !== $transaction['foreign_amount']) {
|
||||
$amount = (string)$transaction['foreign_amount'];
|
||||
$fakeCurrency = new TransactionCurrency;
|
||||
$fakeCurrency->decimal_places = $transaction['foreign_currency_dp'];
|
||||
$fakeCurrency->decimal_places = $transaction['foreign_currency_decimal_places'];
|
||||
$fakeCurrency->symbol = $transaction['foreign_currency_symbol'];
|
||||
$string .= ' (' . app('amount')->formatAnything($fakeCurrency, $amount, true) . ')';
|
||||
}
|
||||
|
Reference in New Issue
Block a user