mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Merge pull request #5196 from weimdall/bugfix/foreign_amount
Bugfix: Foreign Amount rounded on some pages
This commit is contained in:
commit
04dfeaf488
@ -351,7 +351,7 @@ class TransactionGroupTransformer extends AbstractTransformer
|
|||||||
$bill = $this->getBill($journal->bill);
|
$bill = $this->getBill($journal->bill);
|
||||||
|
|
||||||
if (null !== $foreignAmount && null !== $foreignCurrency) {
|
if (null !== $foreignAmount && null !== $foreignCurrency) {
|
||||||
$foreignAmount = number_format((float)$foreignAmount, $foreignCurrency->decimal_places ?? 0, '.', '');
|
$foreignAmount = number_format((float)$foreignAmount, $foreignCurrency['decimal_places'] ?? 0, '.', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
$longitude = null;
|
$longitude = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user