mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-05 12:12:18 +00:00
Refactor some code for recurrences.
This commit is contained in:
@@ -246,6 +246,10 @@ class TransactionJournalFactory
|
||||
$destinationAccount = $this->getAccount($type->type, 'destination', (int)$row['destination_id'], $row['destination_name']);
|
||||
|
||||
/** double check currencies. */
|
||||
$sourceCurrency = $currency;
|
||||
$destCurrency = $currency;
|
||||
$sourceForeignCurrency = $foreignCurrency;
|
||||
$destForeignCurrency = $foreignCurrency;
|
||||
|
||||
if ($type->type === 'Withdrawal') {
|
||||
// make sure currency is correct.
|
||||
|
Reference in New Issue
Block a user