This commit is contained in:
James Cole
2020-07-17 17:26:36 +02:00
parent 0fe17d5458
commit 7aa3cd5ba4

View File

@@ -336,7 +336,7 @@ class TransactionGroupTransformer extends AbstractTransformer
$bill = $this->getBill($journal->bill);
if (null !== $foreignAmount && null !== $foreignCurrency) {
$foreignAmount = number_format($foreignAmount, $foreignCurrency['decimal_places'], '.', '');
$foreignAmount = number_format((float) $foreignAmount, $foreignCurrency['decimal_places'], '.', '');
}
return [