Bugfix: Foreign Amount rounded on some pages

This commit is contained in:
Julien Cassagne
2021-10-22 16:58:52 -04:00
parent 4d8d9cb87d
commit 797064a119

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;