mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for variable display
This commit is contained in:
parent
8039c1a19d
commit
8bc42c62af
@ -110,7 +110,7 @@ class TransactionTransformer implements BankRevenueInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
// enrich description with currencyExchange informations
|
// enrich description with currencyExchange informations
|
||||||
if (array_key_exists('currencyExchange', $transaction)) {
|
if (isset($transaction['currencyExchange'])) {
|
||||||
foreach ($transaction["currencyExchange"] as $exchangeRate) {
|
foreach ($transaction["currencyExchange"] as $exchangeRate) {
|
||||||
$targetAmount = round($amount * (float) ($exchangeRate["exchangeRate"] ?? 1) , 2);
|
$targetAmount = round($amount * (float) ($exchangeRate["exchangeRate"] ?? 1) , 2);
|
||||||
$description .= '\nexchangeRate: ' . $amount . " " . ($exchangeRate["sourceCurrency"] ?? '?') . " = " . $targetAmount . " " . ($exchangeRate["targetCurrency"] ?? '?') . " (" . ($exchangeRate["quotationDate"] ?? '?') . ")";
|
$description .= '\nexchangeRate: ' . $amount . " " . ($exchangeRate["sourceCurrency"] ?? '?') . " = " . $targetAmount . " " . ($exchangeRate["targetCurrency"] ?? '?') . " (" . ($exchangeRate["quotationDate"] ?? '?') . ")";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user