mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Code cleanup.
This commit is contained in:
parent
b4157e8ce0
commit
085eb650e7
@ -29,8 +29,6 @@ use FireflyIII\Factory\AccountMetaFactory;
|
|||||||
use FireflyIII\Models\Account;
|
use FireflyIII\Models\Account;
|
||||||
use FireflyIII\Models\AccountMeta;
|
use FireflyIII\Models\AccountMeta;
|
||||||
use FireflyIII\Models\AccountType;
|
use FireflyIII\Models\AccountType;
|
||||||
use FireflyIII\Models\Transaction;
|
|
||||||
use FireflyIII\Models\TransactionJournal;
|
|
||||||
use FireflyIII\Services\Internal\Support\AccountServiceTrait;
|
use FireflyIII\Services\Internal\Support\AccountServiceTrait;
|
||||||
use Log;
|
use Log;
|
||||||
|
|
||||||
@ -128,5 +126,4 @@ class AccountUpdateService
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -311,7 +311,7 @@ class TransactionUpdateService
|
|||||||
* TODO method is duplicated
|
* TODO method is duplicated
|
||||||
*
|
*
|
||||||
* @param Transaction $transaction
|
* @param Transaction $transaction
|
||||||
* @param string|null $amount
|
* @param string|null $amount
|
||||||
*/
|
*/
|
||||||
protected function setForeignAmount(Transaction $transaction, ?string $amount): void
|
protected function setForeignAmount(Transaction $transaction, ?string $amount): void
|
||||||
{
|
{
|
||||||
@ -330,6 +330,7 @@ class TransactionUpdateService
|
|||||||
if (is_null($currency)) {
|
if (is_null($currency)) {
|
||||||
$transaction->foreign_currency_id = null;
|
$transaction->foreign_currency_id = null;
|
||||||
$transaction->save();
|
$transaction->save();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$transaction->foreign_currency_id = $currency->id;
|
$transaction->foreign_currency_id = $currency->id;
|
||||||
|
Loading…
Reference in New Issue
Block a user