mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-04 01:54:36 -04:00
fixes
This commit is contained in:
parent
b9095b96ab
commit
50d899c93c
@ -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"]) : '?') . ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user