This commit is contained in:
paulwer 2024-02-18 18:53:41 +01:00
parent b9095b96ab
commit 50d899c93c

View File

@ -123,7 +123,7 @@ class TransactionTransformer implements BankRevenueInterface
if (isset($transaction['currencyExchange'])) {
foreach ($transaction["currencyExchange"] as $exchangeRate) {
$targetAmount = round($amount * (float) ($exchangeRate["exchangeRate"] ?? 1), 2);
$description .= '\n' + ctrans('texts.exchange_rate') + ': ' . $amount . " " . ($exchangeRate["sourceCurrency"] ?? '?') . " = " . $targetAmount . " " . ($exchangeRate["targetCurrency"] ?? '?') . " (" . ($exchangeRate["quotationDate"] ?? '?') . ")";
$description .= '\n' + ctrans('texts.exchange_rate') + ': ' . $amount . " " . ($exchangeRate["sourceCurrency"] ?? '?') . " = " . $targetAmount . " " . ($exchangeRate["targetCurrency"] ?? '?') . " (" . ($exchangeRate["quotationDate"] ? $this->formatDate($exchangeRate["quotationDate"]) : '?') . ")";
}
}