Merge pull request #5196 from weimdall/bugfix/foreign_amount

Bugfix: Foreign Amount rounded on some pages
This commit is contained in:
James Cole 2021-10-23 07:00:36 +02:00 committed by GitHub
commit 04dfeaf488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;