Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Merge branch 'develop' of github.com:firefly-iii/firefly-iii into develop
James Colee96a1850da9e
diff --cc app/Listeners/Model/Account/UpdatesAccountInformation.phpindex e6ae85acdd,f1f4f11af3..dc53625173--- a/app/Listeners/Model/Account/UpdatesAccountInformation.php+++ b/app/Listeners/Model/Account/UpdatesAccountInformation.php@@@ -50,18 -53,9 +54,19 @@@ class UpdatesAccountInformatioprivate function updateVirtualBalance(Account $account): void{+ $repository = app(AccountRepositoryInterface::class);+ $currency = $repository->getAccountCurrency($account);++ if(null !== $currency) {+ // moet dit alleen als het NIET null is?+ ConvertsAmountToPrimaryAmount::convert($account->user, $account, $currency, 'virtual_balance', 'native_virtual_balance');++ }+ return;+if (!Amount::convertToPrimary($account->user)) {Log::debug('After account creation, no need to convert virtual balance.');+return;}Log::debug('After account creation, convert virtual balance.');